projects
/
imager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5664d5c
)
[rt #84963] force C locale for gcc -print-search-dirs
author
Tony Cook
<tony@develop-help.com>
Fri, 3 May 2013 00:21:55 +0000
(10:21 +1000)
committer
Tony Cook
<tony@develop-help.com>
Fri, 3 May 2013 00:21:55 +0000
(10:21 +1000)
as the perl core hints/linux.sh does.
lib/Imager/Probe.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Imager/Probe.pm
b/lib/Imager/Probe.pm
index 444ce6dba7fdc37591cfe05932e1a589009e6923..d59b6c181cbdd40d5d0c24fd557c535653c7384a 100644
(file)
--- a/
lib/Imager/Probe.pm
+++ b/
lib/Imager/Probe.pm
@@
-4,6
+4,8
@@
use File::Spec;
use Config;
use Cwd ();
+our $VERSION = "1.001";
+
my @alt_transfer = qw/altname incsuffix libbase/;
sub probe {
@@
-410,6
+412,8
@@
sub _gcc_lib_paths {
$base_version >= 4
or return;
+ local $ENV{LANG} = "C";
+ local $ENV{LC_ALL} = "C";
my ($lib_line) = grep /^libraries:/, `$Config{cc} -print-search-dirs`
or return;
$lib_line =~ s/^libraries: =//;