diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-02-28 16:23:15 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-02-28 16:23:15 +0000 |
commit | 19e194ad5a0b332a85659fe3309d0a3b36eef904 (patch) | |
tree | 4d1e9450dbff4857b435353983efdd1e3af2482c /ext/File | |
parent | 419f661778e370673da98a64e4f8542f2c1d4968 (diff) | |
download | perl-19e194ad5a0b332a85659fe3309d0a3b36eef904.tar.gz |
AIX 64-bit patches from Steven Hirsch <hirschs@btv.ibm.com>
The patch to File/Glob/Makefile.PL is inconvenient but at the
moment necessary: adding an ext/FIle/Glob/hints/aix.pl to turn
off the optimization ($self->{OPTIMIZE} = '') doesn't work,
the file is processed by MakeMaker but OPTIMIZE ends up as -O
in the resulting Makefile. A MakeMaker bug?
p4raw-id: //depot/cfgperl@5323
Diffstat (limited to 'ext/File')
-rw-r--r-- | ext/File/Glob/Makefile.PL | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/File/Glob/Makefile.PL b/ext/File/Glob/Makefile.PL index c82988fdb1..98781c98e7 100644 --- a/ext/File/Glob/Makefile.PL +++ b/ext/File/Glob/Makefile.PL @@ -9,3 +9,13 @@ WriteMakefile( # DEFINE => '-DGLOB_DEBUG', # OPTIMIZE => '-g', ); +use Config; +sub MY::cflags { + package MY; + my $inherited = shift->SUPER::cflags(@_); + if ($Config::Config{archname} =~ /^aix/ and + $Config::Config{use64bitall} eq 'define') { + $inherited =~ s/\s-O\d?//m; + } + $inherited; +} |