public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Benda XU" <heroxbd@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/prefix/linux-standalone/
Date: Sun, 22 May 2016 07:18:39 +0000 (UTC)	[thread overview]
Message-ID: <1463901496.485d1720a3c24e2c25da188d6266c4b618e3104e.heroxbd@gentoo> (raw)

commit:     485d1720a3c24e2c25da188d6266c4b618e3104e
Author:     Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Sun May 22 07:17:02 2016 +0000
Commit:     Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Sun May 22 07:18:16 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=485d1720

p/p/linux-standalone/profile.bashrc: track RAP toolchain tricks.

 profiles/prefix/linux-standalone/profile.bashrc | 29 +++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/profiles/prefix/linux-standalone/profile.bashrc b/profiles/prefix/linux-standalone/profile.bashrc
new file mode 100644
index 0000000..1e4cfcb
--- /dev/null
+++ b/profiles/prefix/linux-standalone/profile.bashrc
@@ -0,0 +1,29 @@
+# RAP specific patches that is pending upstream.
+# binutils: http://article.gmane.org/gmane.comp.gnu.binutils/67593
+
+if [[ ${CATEGORY}/${PN} == sys-devel/gcc && ${EBUILD_PHASE} == prepare ]]; then
+    cd "${S}"
+    einfo "Prefixifying glibc dynamic linker..."
+    for h in gcc/config/*/linux*.h; do
+	ebegin "  Updating $h"
+	sed -i -r "s,(GLIBC_DYNAMIC_LINKER.*\")(/lib),\1${EPREFIX}\2," \
+	    $h || eerror "Please file a bug about this"
+	eend $?
+    done
+
+    # use sysroot of toolchain to get currect include and library at compile time
+    EXTRA_ECONF="${EXTRA_ECONF} --with-sysroot=${EPREFIX}"
+
+    ebegin "remove --sysroot call on ld for native toolchain"
+    sed -i 's/--sysroot=%R//' \
+	gcc/gcc.c || eerror "Please file a bug about this"
+    eend $?
+fi
+
+if [[ ${CATEGORY}/${PN} == sys-devel/binutils && ${EBUILD_PHASE} == prepare ]]; then
+    cd "${S}"
+    ebegin "Prefixifying native library path"
+    sed -i -r "/NATIVE_LIB_DIRS/s,((/usr(/local|)|)/lib),${EPREFIX}\1,g" \
+	ld/configure.tgt || eerror "Please file a bug about this"
+    eend $?
+fi


             reply	other threads:[~2016-05-22  7:18 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-22  7:18 Benda XU [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-11-29  3:57 [gentoo-commits] repo/gentoo:master commit in: profiles/prefix/linux-standalone/ Benda XU
2017-02-09  4:49 Benda XU
2016-12-11 11:29 Benda XU
2016-07-21 13:23 Benda XU
2016-06-15  8:06 Benda XU
2016-06-14  4:46 Benda XU
2016-06-14  4:46 Benda XU
2016-06-07  2:36 Benda XU
2016-06-04  2:25 Benda XU
2016-06-02 13:26 Benda XU
2016-05-28  4:17 Benda XU
2016-05-27  4:39 Benda XU
2016-05-26 13:46 Benda XU
2016-05-26 10:08 Benda XU
2016-05-26  4:02 Benda XU
2016-05-26  4:02 Benda XU
2016-05-26  0:01 Benda XU
2016-05-25  2:28 Benda XU
2016-05-25  2:28 Benda XU
2016-05-23 10:53 Benda XU
2016-03-08  9:25 Benda XU

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=1463901496.485d1720a3c24e2c25da188d6266c4b618e3104e.heroxbd@gentoo \
    --to=heroxbd@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /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