public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Fabian Groffen" <grobian@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/gcc-apple/
Date: Thu, 21 Jun 2018 07:03:07 +0000 (UTC)	[thread overview]
Message-ID: <1529564579.57e868d784107a05d2ea12e008316adc027fe59f.grobian@gentoo> (raw)

commit:     57e868d784107a05d2ea12e008316adc027fe59f
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 21 07:02:43 2018 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Thu Jun 21 07:02:59 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57e868d7

sys-devel/gcc-apple: add -no-cpp-precomp workaround

Package-Manager: Portage-2.3.40, Repoman-2.3.9

 sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r2.ebuild | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r2.ebuild b/sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r2.ebuild
index 1b20668b569..22cbde635fe 100644
--- a/sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r2.ebuild
+++ b/sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r2.ebuild
@@ -110,7 +110,7 @@ src_prepare() {
 	epatch "${FILESDIR}"/${P}-darwin14.patch
 
 	# bootstrapping might fail with host provided gcc on 10.4/x86
-	if ! is_crosscompile && ! echo "int main(){return 0;}" | gcc -o "${T}"/foo \
+	if ! is_crosscompile && ! echo "int main(){return 0;}" | $(tc-getCC) -o "${T}"/foo \
 		-mdynamic-no-pic -x c - >/dev/null 2>&1;
 	then
 		einfo "-mdynamic-no-pic doesn't work - disabling..."
@@ -121,6 +121,14 @@ src_prepare() {
 			|| die "Failed to rewrite $XD"
 	fi
 
+	if [[ ${CHOST} == powerpc*-darwin* ]] && \
+		! echo "int main(){return 0;}" | \
+			$(tc-getCC) -o "${T}"/foo -no-cpp-precomp -x c - >/dev/null 2>&1;
+	then
+		einfo "-no-cpp-precomp not supported by compiler - disabling ..."
+		sed -i -e 's/-no-cpp-precomp//' configure.in configure || die
+	fi
+
 	epatch "${FILESDIR}"/${P}-perl-5.18.patch
 
 	epatch "${FILESDIR}"/${PN}-4.2.1-prefix-search-dirs-r1.patch


             reply	other threads:[~2018-06-21  7:03 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-21  7:03 Fabian Groffen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-01-23  6:03 [gentoo-commits] repo/gentoo:master commit in: sys-devel/gcc-apple/ Sam James
2024-01-22 12:18 Fabian Groffen
2024-01-08 12:28 Sam James
2023-06-09  6:00 Sam James
2021-11-29 18:31 Fabian Groffen
2021-11-25 10:17 Fabian Groffen
2021-01-06 15:32 Fabian Groffen
2020-02-13 21:40 David Seifert
2019-09-15 15:37 Fabian Groffen
2018-06-12 16:23 Fabian Groffen
2018-06-12 10:44 Fabian Groffen
2018-01-16  8:43 Fabian Groffen
2018-01-05  7:51 Fabian Groffen
2017-02-06 19:32 Fabian Groffen
2016-09-10 14:40 Fabian Groffen
2016-09-10 14:08 Fabian Groffen
2016-03-02  7:48 Fabian Groffen

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=1529564579.57e868d784107a05d2ea12e008316adc027fe59f.grobian@gentoo \
    --to=grobian@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