Skip to content

Commit

Permalink
dev-lang/perl: Darwinism: Survival of the fittest command line switch…
Browse files Browse the repository at this point in the history
…es. Bug 636370

Closes: https://bugs.gentoo.org/636370
Package-Manager: Portage-2.3.13, Repoman-2.3.4
  • Loading branch information
akhuettel committed Nov 4, 2017
1 parent cbc7502 commit 59e5b94
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
7 changes: 6 additions & 1 deletion dev-lang/perl/perl-5.26.1-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,12 @@ src_configure() {
# Perl has problems compiling with -Os in your flags with glibc
use elibc_uclibc || replace-flags "-Os" "-O2"

# xlocale.h is going away in glibc-2.26, so it's counterproductive
# if we use it and include it in CORE/perl.h ... Perl builds just
# fine with glibc and locale.h only.
# However, the darwin prefix people have no locale.h ...
use elibc_glibc && myconf -Ui_xlocale

# This flag makes compiling crash in interesting ways
filter-flags "-malign-double"

Expand Down Expand Up @@ -511,7 +517,6 @@ src_configure() {
-Dsh="${EPREFIX}"/bin/sh \
-Dtargetsh="${EPREFIX}"/bin/sh \
-Uusenm \
-Ui_xlocale \
"${myconf[@]}" \
"${EXTRA_ECONF[@]}"

Expand Down
7 changes: 6 additions & 1 deletion dev-lang/perl/perl-5.26.9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,12 @@ src_configure() {
# Perl has problems compiling with -Os in your flags with glibc
use elibc_uclibc || replace-flags "-Os" "-O2"

# xlocale.h is going away in glibc-2.26, so it's counterproductive
# if we use it and include it in CORE/perl.h ... Perl builds just
# fine with glibc and locale.h only.
# However, the darwin prefix people have no locale.h ...
use elibc_glibc && myconf -Ui_xlocale

# This flag makes compiling crash in interesting ways
filter-flags "-malign-double"

Expand Down Expand Up @@ -511,7 +517,6 @@ src_configure() {
-Dsh="${EPREFIX}"/bin/sh \
-Dtargetsh="${EPREFIX}"/bin/sh \
-Uusenm \
-Ui_xlocale \
"${myconf[@]}" \
"${EXTRA_ECONF[@]}"

Expand Down
7 changes: 6 additions & 1 deletion dev-lang/perl/perl-5.28.9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,12 @@ src_configure() {
# Perl has problems compiling with -Os in your flags with glibc
use elibc_uclibc || replace-flags "-Os" "-O2"

# xlocale.h is going away in glibc-2.26, so it's counterproductive
# if we use it and include it in CORE/perl.h ... Perl builds just
# fine with glibc and locale.h only.
# However, the darwin prefix people have no locale.h ...
use elibc_glibc && myconf -Ui_xlocale

# This flag makes compiling crash in interesting ways
filter-flags "-malign-double"

Expand Down Expand Up @@ -511,7 +517,6 @@ src_configure() {
-Dsh="${EPREFIX}"/bin/sh \
-Dtargetsh="${EPREFIX}"/bin/sh \
-Uusenm \
-Ui_xlocale \
"${myconf[@]}" \
"${EXTRA_ECONF[@]}"

Expand Down

0 comments on commit 59e5b94

Please sign in to comment.