diff options
| author | Felix Fietkau <nbd@nbd.name> | 2023-11-01 17:44:43 +0100 |
|---|---|---|
| committer | Felix Fietkau <nbd@nbd.name> | 2023-11-01 17:45:25 +0100 |
| commit | 5364163e774a6887c3c9e5c87203d32e2db26928 (patch) | |
| tree | d71ff01f3d202ee9abcf30062a0dddfc801c18a5 /tools/elfutils | |
| parent | 280d9dd75874ef4c4e2407366eda987cda8efd25 (diff) | |
| download | upstream-5364163e774a6887c3c9e5c87203d32e2db26928.tar.gz upstream-5364163e774a6887c3c9e5c87203d32e2db26928.tar.bz2 upstream-5364163e774a6887c3c9e5c87203d32e2db26928.zip | |
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>
Diffstat (limited to 'tools/elfutils')
| -rw-r--r-- | tools/elfutils/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/elfutils/Makefile b/tools/elfutils/Makefile index 2605bc61cb7..92eabc14ddf 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 \ |
