From 5364163e774a6887c3c9e5c87203d32e2db26928 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 1 Nov 2023 17:44:43 +0100 Subject: [PATCH 1/1] 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 --- tools/elfutils/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 \ -- 2.30.2