dev-lang/perl: fix compile for older Darwin with newer GCC
authorFabian Groffen <grobian@gentoo.org>
Tue, 11 Dec 2018 14:58:40 +0000 (15:58 +0100)
committerFabian Groffen <grobian@gentoo.org>
Tue, 11 Dec 2018 14:58:54 +0000 (15:58 +0100)
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

dev-lang/perl/perl-5.26.2.ebuild
dev-lang/perl/perl-5.26.9999.ebuild
dev-lang/perl/perl-5.28.0.ebuild
dev-lang/perl/perl-5.28.9999.ebuild

index 83fb285a19861ef1049f34ab72df434b1c744816..e2af84bf47debac0bc7bf57423cf8c043bba85b5 100644 (file)
@@ -455,6 +455,11 @@ src_configure() {
        [[ ${CHOST} == *-darwin* ]] && \
                myconf "-Dld=env MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} $(tc-getCC)"
 
+       # Older macOS with non-Apple GCC chokes on inline in system headers
+       # using c89 mode as injected by cflags.SH
+       [[ ${CHOST} == *-darwin* && ${CHOST##*darwin} -le 9 ]] && tc-is-gcc && \
+               append-cflags -Dinline=__inline__
+
        # Prefix: the host system needs not to follow Gentoo multilib stuff, and in
        # Prefix itself we don't do multilib either, so make sure perl can find
        # something compatible.
index 83fb285a19861ef1049f34ab72df434b1c744816..e2af84bf47debac0bc7bf57423cf8c043bba85b5 100644 (file)
@@ -455,6 +455,11 @@ src_configure() {
        [[ ${CHOST} == *-darwin* ]] && \
                myconf "-Dld=env MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} $(tc-getCC)"
 
+       # Older macOS with non-Apple GCC chokes on inline in system headers
+       # using c89 mode as injected by cflags.SH
+       [[ ${CHOST} == *-darwin* && ${CHOST##*darwin} -le 9 ]] && tc-is-gcc && \
+               append-cflags -Dinline=__inline__
+
        # Prefix: the host system needs not to follow Gentoo multilib stuff, and in
        # Prefix itself we don't do multilib either, so make sure perl can find
        # something compatible.
index c990d1af72b5f6f9a2e2295483f5eccc98b3ed88..a88e2d54acf9e837595977e766428406812602b2 100644 (file)
@@ -458,6 +458,11 @@ src_configure() {
        [[ ${CHOST} == *-darwin* ]] && \
                myconf "-Dld=env MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} $(tc-getCC)"
 
+       # Older macOS with non-Apple GCC chokes on inline in system headers
+       # using c89 mode as injected by cflags.SH
+       [[ ${CHOST} == *-darwin* && ${CHOST##*darwin} -le 9 ]] && tc-is-gcc && \
+               append-cflags -Dinline=__inline__
+
        # Prefix: the host system needs not to follow Gentoo multilib stuff, and in
        # Prefix itself we don't do multilib either, so make sure perl can find
        # something compatible.
index c990d1af72b5f6f9a2e2295483f5eccc98b3ed88..a88e2d54acf9e837595977e766428406812602b2 100644 (file)
@@ -458,6 +458,11 @@ src_configure() {
        [[ ${CHOST} == *-darwin* ]] && \
                myconf "-Dld=env MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} $(tc-getCC)"
 
+       # Older macOS with non-Apple GCC chokes on inline in system headers
+       # using c89 mode as injected by cflags.SH
+       [[ ${CHOST} == *-darwin* && ${CHOST##*darwin} -le 9 ]] && tc-is-gcc && \
+               append-cflags -Dinline=__inline__
+
        # Prefix: the host system needs not to follow Gentoo multilib stuff, and in
        # Prefix itself we don't do multilib either, so make sure perl can find
        # something compatible.