diff options
author | Nicholas Clark <nick@ccl4.org> | 2012-05-14 10:17:06 +0100 |
---|---|---|
committer | Ricardo Signes <rjbs@cpan.org> | 2012-05-14 15:22:59 -0400 |
commit | 9e25173dec21c62906ff29f8910ff529b7282ca8 (patch) | |
tree | ee4d7069291b1742859685c87c1a26530c8c1d76 /hints | |
parent | 8a2e590377134cb566c10e2208f7705ee1ef2da5 (diff) | |
download | perl-9e25173dec21c62906ff29f8910ff529b7282ca8.tar.gz |
In the Linux hints, invoke gcc with LANG and LC_ALL set to "C".
The output of gcc -print-search-dirs is subject to localisation, which means
that the literal text "libraries" will not be present if the user has a
non-English locale, and we won't determine the correct path for libraries
such as -lm, breaking the build. Problem diagnosed by Alexander Hartmaier.
Diffstat (limited to 'hints')
-rw-r--r-- | hints/linux.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hints/linux.sh b/hints/linux.sh index 5713fafe81..688c68df66 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -174,7 +174,7 @@ else fi case "$plibpth" in -'') plibpth=`$gcc -print-search-dirs | grep libraries | +'') plibpth=`LANG=C LC_ALL=C $gcc -print-search-dirs | grep libraries | cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'` set X $plibpth # Collapse all entries on one line shift |