From: Felix Fietkau Date: Wed, 1 Nov 2023 16:44:43 +0000 (+0100) Subject: tools/elfutils: add -fPIC to fix linker errors (#13841) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5364163e774a6887c3c9e5c87203d32e2db26928;p=openwrt%2Fstaging%2Fthess.git tools/elfutils: add -fPIC to fix linker errors (#13841) Resolves issues with building PIE binaries that link against libdw or libelf Signed-off-by: Felix Fietkau --- diff --git a/tools/elfutils/Makefile b/tools/elfutils/Makefile index 2605bc61cb..92eabc14dd 100644 --- a/tools/elfutils/Makefile +++ b/tools/elfutils/Makefile @@ -23,7 +23,7 @@ ifeq ($(HOST_OS),Darwin) HOST_CFLAGS += -I/opt/homebrew/include endif -HOST_CFLAGS += -Wno-error +HOST_CFLAGS += -Wno-error -fPIC HOST_CONFIGURE_ARGS += \ --without-libintl-prefix \