mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] binutils: provide PIC code in the static libiberty
@ 2016-12-06 10:23 Juergen Borleis
  0 siblings, 0 replies; only message in thread
From: Juergen Borleis @ 2016-12-06 10:23 UTC (permalink / raw)
  To: ptxdist

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>
---
 rules/binutils.make | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/rules/binutils.make b/rules/binutils.make
index 3b91435..63d5fa9 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
-- 
2.10.2


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-12-06 10:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-06 10:23 [ptxdist] [PATCH] binutils: provide PIC code in the static libiberty Juergen Borleis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox