mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-25 07:08:13 -07:00
sys-devel/gcc-apple: add -no-cpp-precomp workaround
Package-Manager: Portage-2.3.40, Repoman-2.3.9
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user