summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-06-13 14:33:51 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-06-13 14:33:51 +0000
commitf72d1791dc00727a5f66df7ed9fa216194f48af8 (patch)
tree3f4b062470a511cab340db9e3366425785bbb07d /hints
parentaf28e88917ada915d1c6a69f2caccaada3cad842 (diff)
downloadperl-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.sh5
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:
#