aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Romain Naour <romain.naour@openwide.fr>2014-12-27 22:58:19 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-12-28 22:20:09 +0100
commit3e05efd76636d29821a625fb608a49d846485572 (patch)
tree6acd986b18a6bf2c2ffd2b6d2f443da7edeb5ff9
parent21b5d859997ac30898d86a79bb683ada1849e965 (diff)
downloadbuildroot-3e05efd76636d29821a625fb608a49d846485572.tar.gz
buildroot-3e05efd76636d29821a625fb608a49d846485572.tar.bz2
package/lm-sensors: disable static library for shared-only build
Signed-off-by: Romain Naour <romain.naour@openwide.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/lm-sensors/lm-sensors.mk6
1 files changed, 6 insertions, 0 deletions
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