In perl.git, the branch smoke-me/gcc-multiarch-LANG-fix has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/9f1a9b3dd9de4c0f03cea57df4564808622a45e6?hp=e58efd23bbc2662210fe98a6ade2d6a2b05398cb>

- Log -----------------------------------------------------------------
commit 9f1a9b3dd9de4c0f03cea57df4564808622a45e6
Author: Nicholas Clark <[email protected]>
Date:   Mon May 14 10:17:06 2012 +0100

    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.
-----------------------------------------------------------------------

Summary of changes:
 hints/linux.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hints/linux.sh b/hints/linux.sh
index 5713faf..688c68d 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

--
Perl5 Master Repository

Reply via email to