From: Romain Naour Date: Sat, 27 Dec 2014 21:58:19 +0000 (+0100) Subject: package/lm-sensors: disable static library for shared-only build X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3e05efd76636d29821a625fb608a49d846485572;p=buildroot.git package/lm-sensors: disable static library for shared-only build Signed-off-by: Romain Naour Signed-off-by: Thomas Petazzoni --- diff --git a/package/lm-sensors/lm-sensors.mk b/package/lm-sensors/lm-sensors.mk index a79977f607..c26f91918d 100644 --- a/package/lm-sensors/lm-sensors.mk +++ b/package/lm-sensors/lm-sensors.mk @@ -31,6 +31,12 @@ else LM_SENSORS_MAKE_OPTS += BUILD_SHARED_LIB=1 endif +ifeq ($(BR2_SHARED_LIBS),y) +LM_SENSORS_MAKE_OPTS += BUILD_STATIC_LIB=0 +else +LM_SENSORS_MAKE_OPTS += BUILD_STATIC_LIB=1 +endif + define LM_SENSORS_BUILD_CMDS $(MAKE) $(TARGET_CONFIGURE_OPTS) $(LM_SENSORS_MAKE_OPTS) -C $(@D) endef