summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau2023-11-01 16:44:43 +0000
committerFelix Fietkau2023-11-01 16:45:25 +0000
commit5364163e774a6887c3c9e5c87203d32e2db26928 (patch)
treed71ff01f3d202ee9abcf30062a0dddfc801c18a5
parent280d9dd75874ef4c4e2407366eda987cda8efd25 (diff)
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 <nbd@nbd.name>
-rw-r--r--tools/elfutils/Makefile2
1 files changed, 1 insertions, 1 deletions
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 \