diff options
Diffstat (limited to 'sys-devel/gcc-apple')
-rw-r--r-- | sys-devel/gcc-apple/Manifest | 2 | ||||
-rw-r--r-- | sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r2.ebuild | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/sys-devel/gcc-apple/Manifest b/sys-devel/gcc-apple/Manifest index ba4ea7ee0111..f4cd04146eb9 100644 --- a/sys-devel/gcc-apple/Manifest +++ b/sys-devel/gcc-apple/Manifest @@ -12,5 +12,5 @@ DIST gcc-apple-4.2.1_p5646-gfortran.patch 38284 BLAKE2B 83934d5e52a27a0db750f725 DIST gcc-fortran-4.2.4.tar.bz2 905688 BLAKE2B 6a7e030e3261b147f5add7c8b936ecb7a7a20b99db96e957fa94591560a2e303f2cdf931ca8d73b7c29464d288d1db52c2619bbf1cce30d7326a668aab303dad SHA512 1a36587a3691b8d7ecd23938efcdfca42642b6b260a1c830f6d791bb1b8ac32953998c45d77eee2d557861d631431569503c796b61aeaea9ac5fffbce1982faa DIST libstdcxx-16.tar.gz 64695692 BLAKE2B 3660778be1f28761fdf93d6db77eba54836f3ed45af756786f94abc3556f2013a84af8a2585ffee16925cd84634c96196c4392a80ed7e34db6dcb8f96f979d60 SHA512 2f0e8d694aaaf94fc2a0463ebd4a5775865421dedb431a6f6f701a8d33078e768bef232f72e2cf1f8e2d278eb60ff54030f5ad22b43eb0643d49bc4717e96b05 DIST libstdcxx-39.tar.gz 117081330 BLAKE2B 03df012edd588e27bb1e17439e1b213bbf08a9656579f4a938c3026b993158962a44660d0dd2027ad6f12aa2b0cfaa7880a0ecfbd27b2e976bba3260e56bb377 SHA512 c640292c0f371069fbb635ed0385627c8abab869db93513922e19b25886864d093eef3684c49bf1ba82325f2d1d3cd1eb382ef6ea9dee039208fe99fe8653db6 -EBUILD gcc-apple-4.2.1_p5666-r2.ebuild 12931 BLAKE2B 0beb8dd135af7a60bb5f34684f605b0d141b1a2c595e97e5dc474c3c0d0444341ce3458e59d16561a42156feb7bce9e98adc0d705dff01e8fe3ac75bb1fa91f1 SHA512 0f2f6c8b0b99b36f06362d3834778b056af94c1066d470ac50ca6416a85851e3c2bd8fe4bc901c96daee6bf6063c138da7eecb0f355c7f7b1db433b07a17fd4f +EBUILD gcc-apple-4.2.1_p5666-r2.ebuild 13232 BLAKE2B ab895bb980a39ea7a509f8f9dd189a08a019ebd75b1ac5f177ed0fd5ab0be364322e9e3b0b1a60d514198016bf77fc3ea932f6912bccdad72a6899a720541c83 SHA512 2058c8ed2e068e1002601db46f988a9b7a5ebaecf12fa76308978b68a99f91e5e8ec1290f44732ce505276a854e28c6dc6a7f6dae1f52a84c04443ac67ff8ae3 MISC metadata.xml 530 BLAKE2B 9cbe53672ff6d681bda4893ac4630e70e80129fcfbd0abe5862eddb51008b60220b5c3bffa15177c9d5c0308d0569dfcec7eeaf2ea87042b28a32714efb83530 SHA512 29922e179098de072d1a5bd869ba4505a88ee1340ceb66b0898b58446ddd74b6a6dcc961b4a1445d2db3b95259c6cb31030b9c0b7ea036a92b303b7f7ac3b371 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 1b20668b569d..22cbde635fe1 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 |