summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2018-03-08 17:43:33 (GMT)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-07-05 07:16:16 (GMT)
commitb99dbdfac946751deb05e6e0c1f4c44659e15524 (patch)
tree2fc65382e4d2cb19b589dd0ca13bc9aa41b0fe6d
parent36855f5ce1752588d1e75089e78a6f6abdb9dbbc (diff)
downloadbuildroot-b99dbdfac946751deb05e6e0c1f4c44659e15524.tar.gz
buildroot-b99dbdfac946751deb05e6e0c1f4c44659e15524.tar.bz2
lm-sensors: fix static build
Add -static to the link command line to have libgcc resolve libc symbols. This overrides the default -Wl,-rpath,/usr/lib, which is useless for static build anyway. Fixes: http://autobuild.buildroot.net/results/25d580bee6f609f6b28ebd6cc96d180179901b0e/ Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/lm-sensors/lm-sensors.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/lm-sensors/lm-sensors.mk b/package/lm-sensors/lm-sensors.mk
index f581b5c..6fc7ce4 100644
--- a/package/lm-sensors/lm-sensors.mk
+++ b/package/lm-sensors/lm-sensors.mk
@@ -26,7 +26,7 @@ LM_SENSORS_MAKE_OPTS = \
PREFIX=/usr
ifeq ($(BR2_STATIC_LIBS),y)
-LM_SENSORS_MAKE_OPTS += BUILD_SHARED_LIB=0
+LM_SENSORS_MAKE_OPTS += BUILD_SHARED_LIB=0 EXLDFLAGS=-static
else
LM_SENSORS_MAKE_OPTS += BUILD_SHARED_LIB=1
endif