commit:     61bc34726037ca06aade8b1fe5ce94d7abd15316
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 11 14:58:40 2018 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Tue Dec 11 14:58:54 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61bc3472

dev-lang/perl: fix compile for older Darwin with newer GCC

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

 dev-lang/perl/perl-5.26.2.ebuild    | 5 +++++
 dev-lang/perl/perl-5.26.9999.ebuild | 5 +++++
 dev-lang/perl/perl-5.28.0.ebuild    | 5 +++++
 dev-lang/perl/perl-5.28.9999.ebuild | 5 +++++
 4 files changed, 20 insertions(+)

diff --git a/dev-lang/perl/perl-5.26.2.ebuild b/dev-lang/perl/perl-5.26.2.ebuild
index 83fb285a198..e2af84bf47d 100644
--- a/dev-lang/perl/perl-5.26.2.ebuild
+++ b/dev-lang/perl/perl-5.26.2.ebuild
@@ -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.

diff --git a/dev-lang/perl/perl-5.26.9999.ebuild 
b/dev-lang/perl/perl-5.26.9999.ebuild
index 83fb285a198..e2af84bf47d 100644
--- a/dev-lang/perl/perl-5.26.9999.ebuild
+++ b/dev-lang/perl/perl-5.26.9999.ebuild
@@ -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.

diff --git a/dev-lang/perl/perl-5.28.0.ebuild b/dev-lang/perl/perl-5.28.0.ebuild
index c990d1af72b..a88e2d54acf 100644
--- a/dev-lang/perl/perl-5.28.0.ebuild
+++ b/dev-lang/perl/perl-5.28.0.ebuild
@@ -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.

diff --git a/dev-lang/perl/perl-5.28.9999.ebuild 
b/dev-lang/perl/perl-5.28.9999.ebuild
index c990d1af72b..a88e2d54acf 100644
--- a/dev-lang/perl/perl-5.28.9999.ebuild
+++ b/dev-lang/perl/perl-5.28.9999.ebuild
@@ -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.

Reply via email to