lm-sensors: fix static build
authorBaruch Siach <baruch@tkos.co.il>
Thu, 8 Mar 2018 17:43:33 +0000 (19:43 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 5 Jul 2018 07:16:16 +0000 (09:16 +0200)
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>
package/lm-sensors/lm-sensors.mk

index f581b5cd8f2181d5e02340cf3257460e223594bd..6fc7ce4981c9a18c45e519245c3e62e84a4ddeef 100644 (file)
@@ -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