[Buildroot] [RFC] lm-sensors: fix static build
baruch at tkos.co.il
Thu Mar 8 17:43:33 UTC 2018
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.
Signed-off-by: Baruch Siach <baruch at tkos.co.il>
I'm not sure this is the right fix. Adding -lc to the failed link
command also fixes the issue. But libc is always a dependency of libgcc.
It is also not clear why this issue appeared now. This is the only
lm-sensors failure in the current autobuilder database. The only recent
change that might be related is the musl bump to 1.1.19.
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 f581b5cd8f21..6fc7ce4981c9 100644
@@ -26,7 +26,7 @@ LM_SENSORS_MAKE_OPTS = \
-LM_SENSORS_MAKE_OPTS += BUILD_SHARED_LIB=0
+LM_SENSORS_MAKE_OPTS += BUILD_SHARED_LIB=0 EXLDFLAGS=-static
LM_SENSORS_MAKE_OPTS += BUILD_SHARED_LIB=1
More information about the buildroot