tools/util-linux: build libuuid as PIC
authorRosen Penev <rosenp@gmail.com>
Mon, 1 Jul 2024 23:48:45 +0000 (16:48 -0700)
committerRobert Marko <robimarko@gmail.com>
Tue, 2 Jul 2024 09:59:06 +0000 (11:59 +0200)
Needed to fix users of libuuid.a as autoconf applies PIC to only shared
libraries by default.

Found when trying to build python3/host.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15852
Signed-off-by: Robert Marko <robimarko@gmail.com>
tools/util-linux/Makefile

index a3a6c2be4134461ebbddeda662b9d90b73876ea2..b4cc45efc8e3e325e83e8c04565a08883b79076a 100644 (file)
@@ -21,6 +21,7 @@ HOST_BUILD_PARALLEL:=1
 include $(INCLUDE_DIR)/host-build.mk
 
 HOST_CONFIGURE_ARGS += \
+       --with-pic \
        --disable-shared \
        --disable-all-programs \
        --enable-hexdump \