diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-07-18 04:42:13 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-07-18 04:42:13 +0000 |
commit | 65fe0b2a37b1f4886be0de28cfdc2bcaf5ed0771 (patch) | |
tree | 913fd05dc3530b8aa6b92b33127852c995c990d0 /hints/darwin.sh | |
parent | 25342a554312ec272aa82646241e17c25b9a2b25 (diff) | |
download | perl-65fe0b2a37b1f4886be0de28cfdc2bcaf5ed0771.tar.gz |
It would seem that Mac OS X has fixed the INT32_MIN INT64_MIN.
p4raw-id: //depot/perl@17617
Diffstat (limited to 'hints/darwin.sh')
-rw-r--r-- | hints/darwin.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/hints/darwin.sh b/hints/darwin.sh index 518af30026..4bc95f0589 100644 --- a/hints/darwin.sh +++ b/hints/darwin.sh @@ -76,12 +76,18 @@ ccflags="${ccflags} -pipe -fno-common" # seems to work. INT64_MIN seems to be similarly broken. # -- Nicholas Clark, Ken Williams, and Edward Moy # -ccflags="${ccflags} -DINT32_MIN_BROKEN -DINT64_MIN_BROKEN" +# This seems to have been fixed since at least Mac OS X 10.1.3, +# stdint.h defining INT32_MIN as (-INT32_MAX-1) +# -- Edward Moy +# +case "`grep '^#define INT32_MIN' /usr/include/stdint.h`" in +*-2147483648) ccflags="${ccflags} -DINT32_MIN_BROKEN -DINT64_MIN_BROKEN" ;; +esac # cppflags='-traditional-cpp'; # avoid Apple's cpp precompiler, better for extensions cppflags="${cppflags} -no-cpp-precomp" -# and ccflags needs them aswell since we don't use cpp directly +# and ccflags needs them as well since we don't use cpp directly ccflags="${ccflags} -no-cpp-precomp" # Known optimizer problems. |