diff options
author | Juergen Borleis <jbe@pengutronix.de> | 2016-12-06 11:23:29 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2016-12-06 16:58:41 +0100 |
commit | b4de18bc591341353aea05c9d4c511fa985762f0 (patch) | |
tree | 9e8397605a1a6d226d8a6fa5516e67d65458b756 /rules/binutils.make | |
parent | ff1ada1c78c54a38fe4f674f6f60fe7299c906d6 (diff) | |
download | ptxdist-b4de18bc591341353aea05c9d4c511fa985762f0.tar.gz ptxdist-b4de18bc591341353aea05c9d4c511fa985762f0.tar.xz |
binutils: provide PIC code in the static libiberty
Many tools are using this static library all over the place. And some using
the 'libiberty' in their shared libraries ('latrace' for example) which
fails at link time because the 'binutils' pacakge provides a non-PIC
variant of this library only.
This change is a hack to force 'libiberty' to be compiled as a PIC object
to be able to link it against shared libraries as well.
Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/binutils.make')
-rw-r--r-- | rules/binutils.make | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rules/binutils.make b/rules/binutils.make index 3b9143562..63d5fa9b0 100644 --- a/rules/binutils.make +++ b/rules/binutils.make @@ -45,6 +45,8 @@ BINUTILS_AUTOCONF := \ --enable-install-libiberty \ --disable-multilib \ --disable-werror +BINUTILS_MAKE_ENV := \ + PTXCONF_TARGET_HARDEN_PIE=y # ---------------------------------------------------------------------------- # Target-Install |