From: Randal L. Schwartz Date: Fri, 2 Nov 2001 09:33:34 +0000 (-0800) Subject: patches for MacOS X 10.1 for perl 5.7.2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8f4f83badb7d1ba9fbdc45673bc7277e7619b775;p=p5sagit%2Fp5-mst-13.2.git patches for MacOS X 10.1 for perl 5.7.2 Message-ID: (two of the changes) Better coexistence with extensions. p4raw-id: //depot/perl@12816 --- diff --git a/ext/Errno/Errno_pm.PL b/ext/Errno/Errno_pm.PL index 58b440b..541106c 100644 --- a/ext/Errno/Errno_pm.PL +++ b/ext/Errno/Errno_pm.PL @@ -30,7 +30,7 @@ sub process_file { } elsif ($Config{gccversion} ne '' # OpenSTEP has gcc 2.7.2.1 which recognizes but # doesn't implement the -dM flag. - && $^O ne 'openstep' && $^O ne 'next' + && $^O ne 'openstep' && $^O ne 'next' && $^O ne 'darwin' ) { # With the -dM option, gcc outputs every #define it finds unless(open(FH,"$Config{cc} -E -dM $Config{cppflags} $file |")) { diff --git a/hints/darwin.sh b/hints/darwin.sh index 61940f3..d5e27a5 100644 --- a/hints/darwin.sh +++ b/hints/darwin.sh @@ -78,8 +78,9 @@ ccflags="${ccflags} -pipe -fno-common" # ccflags="${ccflags} -DINT32_MIN_BROKEN -DINT64_MIN_BROKEN" -# cpp-precomp is problematic. -cppflags='-traditional-cpp'; +# cppflags='-traditional-cpp'; +# avoid Apple's cpp precompiler, better for extensions +cppflags="${cppflags} -no-cpp-precomp" # Shared library extension is .dylib. # Bundle extension is .bundle.