Change 11507 by jhi@wayland on 2001/07/30 23:11:10
Explain in more detail why -pipe and -fno-common are good.
Affected files ...
... //depot/perl/hints/darwin.sh#14 edit
Differences ...
==== //depot/perl/hints/darwin.sh#14 (text) ====
Index: perl/hints/darwin.sh
--- perl/hints/darwin.sh.~1~ Mon Jul 30 17:15:05 2001
+++ perl/hints/darwin.sh Mon Jul 30 17:15:05 2001
@@ -51,8 +51,12 @@
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:
End of Patch.