diff options
author | Niko Tyni <ntyni@debian.org> | 2009-04-05 22:29:38 +0300 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2009-04-07 16:39:16 +0200 |
commit | 05d7b09c88e73b949dce24ed7f6aef5a39b9c74f (patch) | |
tree | f1e3e186bde7c4f92e7395216dbd298a9f37d2c7 /utils | |
parent | 55b6781562aff32ef6499c4f263ab251254ca5cb (diff) | |
download | perl-05d7b09c88e73b949dce24ed7f6aef5a39b9c74f.tar.gz |
Make h2ph look in "include-fixed", needed by at least gcc 4.3
As seen in <http://bugs.debian.org/522673>, since 4.2.0 or so
gcc's search path has a new "include-fixed" directory,
which currently contains <syslimits.h> and a few other headers.
Converting <syslimits.h> therefore fails unless h2ph knows about the new
directory too.
See http://gcc.gnu.org/ml/gcc-patches/2007-02/msg02038.html for some
background to the gcc change.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/h2ph.PL | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/h2ph.PL b/utils/h2ph.PL index a3ff285ec0..6f40126fff 100644 --- a/utils/h2ph.PL +++ b/utils/h2ph.PL @@ -743,7 +743,7 @@ sub queue_includes_from # Determine include directories; $Config{usrinc} should be enough for (all -# non-GCC?) C compilers, but gcc uses an additional include directory. +# non-GCC?) C compilers, but gcc uses additional include directories. sub inc_dirs { my $from_gcc = `LC_ALL=C $Config{cc} -v 2>&1`; @@ -755,7 +755,7 @@ sub inc_dirs $from_gcc = ''; }; }; - length($from_gcc) ? ($from_gcc, $Config{usrinc}) : ($Config{usrinc}); + length($from_gcc) ? ($from_gcc, $from_gcc . "-fixed", $Config{usrinc}) : ($Config{usrinc}); } |