summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-07-30 23:11:10 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-07-30 23:11:10 +0000
commitfaf52077314b44c5bedc5d7fe06835bf98c07f69 (patch)
tree86e315722797d779bcc8e9f40d2c9267cd09d8bb /hints
parentd2a168168aebad1c49b517183798f6ce11a71ab1 (diff)
downloadperl-faf52077314b44c5bedc5d7fe06835bf98c07f69.tar.gz
Explain in more detail why -pipe and -fno-common are good.
p4raw-id: //depot/perl@11507
Diffstat (limited to 'hints')
-rw-r--r--hints/darwin.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/hints/darwin.sh b/hints/darwin.sh
index de5857c09e..c2e7606d7b 100644
--- a/hints/darwin.sh
+++ b/hints/darwin.sh
@@ -51,8 +51,12 @@ if [ "x$optimize" = 'x' ]; then
optimize='-O3'
fi
-# XXX Unclear why we require -pipe and -fno-common here. --Andy Dougherty
-# We don't like commons. --Fred Sánchez
+# -pipe: makes compilation go faster.
+# -fno-common: we don't like commons. Common symbols are not allowed
+# in MH_DYLIB binaries, which is what libperl.dylib is. You will fail
+# to link without that option, unless you otherwise eliminate all commons
+# by, for example, initializing all globals.
+# --Fred Sánchez
ccflags="${ccflags} -pipe -fno-common"
# At least on Darwin 1.3.x: