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>
This commit is contained in:
parent
36855f5ce1
commit
b99dbdfac9
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue