mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Juergen Borleis <jbe@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] binutils: provide PIC code in the static libiberty
Date: Tue,  6 Dec 2016 11:23:29 +0100	[thread overview]
Message-ID: <20161206102329.25862-1-jbe@pengutronix.de> (raw)

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

                 reply	other threads:[~2016-12-06 10:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161206102329.25862-1-jbe@pengutronix.de \
    --to=jbe@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox