From 3e05efd76636d29821a625fb608a49d846485572 Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Sat, 27 Dec 2014 22:58:19 +0100 Subject: [PATCH] package/lm-sensors: disable static library for shared-only build Signed-off-by: Romain Naour Signed-off-by: Thomas Petazzoni --- package/lm-sensors/lm-sensors.mk | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.30.2