aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2020-11-14 23:11:24 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2020-11-16 22:30:13 +0100
commit9bd7849beddfd14075c207ca36a98782f6f6acfa (patch)
tree7a99ef70fddcdff46a1eb1bba76df0b04015b9fd
parent02da94e9e21099ef4e7dd006e943682bf780eae8 (diff)
downloadbuildroot-9bd7849beddfd14075c207ca36a98782f6f6acfa.tar.gz
buildroot-9bd7849beddfd14075c207ca36a98782f6f6acfa.tar.bz2
package/numactl: needs -fPIC
This will avoid the following build failure with qemu 5.0.0 and above: /srv/storage/autobuild/run/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/8.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: /srv/storage/autobuild/run/instance-2/output-1/host/x86_64-buildroot-linux-uclibc/sysroot/usr/lib/../lib64/libnuma.a(libnuma.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC Fixes: - http://autobuild.buildroot.org/results/616dff216a215dc0494c846d337e03e0795b2fb2 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com> (cherry picked from commit 6fe0298eecb50a5145bc20411af24dc22cfcf861) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/numactl/numactl.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/numactl/numactl.mk b/package/numactl/numactl.mk
index 4d3ceeb6c7..6fa05dca69 100644
--- a/package/numactl/numactl.mk
+++ b/package/numactl/numactl.mk
@@ -10,5 +10,6 @@ NUMACTL_LICENSE = LGPL-2.1 (libnuma), GPL-2.0 (programs)
NUMACTL_LICENSE_FILES = README.md
NUMACTL_INSTALL_STAGING = YES
NUMACTL_AUTORECONF = YES
+NUMACTL_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -fPIC"
$(eval $(autotools-package))