From b99dbdfac946751deb05e6e0c1f4c44659e15524 Mon Sep 17 00:00:00 2001 From: Baruch Siach Date: Thu, 8 Mar 2018 19:43:33 +0200 Subject: [PATCH] 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 Signed-off-by: Thomas Petazzoni --- package/lm-sensors/lm-sensors.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/lm-sensors/lm-sensors.mk b/package/lm-sensors/lm-sensors.mk index f581b5cd8f..6fc7ce4981 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 -- 2.30.2