diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-06-13 14:33:51 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-06-13 14:33:51 +0000 |
commit | f72d1791dc00727a5f66df7ed9fa216194f48af8 (patch) | |
tree | 3f4b062470a511cab340db9e3366425785bbb07d /hints | |
parent | af28e88917ada915d1c6a69f2caccaada3cad842 (diff) | |
download | perl-f72d1791dc00727a5f66df7ed9fa216194f48af8.tar.gz |
Apparently the __APPLE__ cpp symbol is not Officially Sanctioned
way of detecting Darwin/Mac OS X; instead it is recommended to
detect the OS at a higher level and pass the information manually
down to the application, using e.g. a -Ddefinition.
p4raw-id: //depot/perl@19764
Diffstat (limited to 'hints')
-rw-r--r-- | hints/darwin.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/hints/darwin.sh b/hints/darwin.sh index 748a67f1bd..affa83cecd 100644 --- a/hints/darwin.sh +++ b/hints/darwin.sh @@ -71,7 +71,10 @@ esac # -pipe: makes compilation go faster. # -fno-common because common symbols are not allowed in MH_DYLIB -ccflags="${ccflags} -pipe -fno-common" +# -DDARWIN: apparently the __APPLE__ is not sanctioned by Apple +# as the way to differentiate Mac OS X. (The official line is that +# *no* cpp symbol does differentiate Mac OS X.) +ccflags="${ccflags} -pipe -fno-common -DDARWIN" # At least on Darwin 1.3.x: # |