This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Explain in more detail why -pipe and -fno-common are good.
authorJarkko Hietaniemi <jhi@iki.fi>
Mon, 30 Jul 2001 23:11:10 +0000 (23:11 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 30 Jul 2001 23:11:10 +0000 (23:11 +0000)
p4raw-id: //depot/perl@11507

hints/darwin.sh

index de5857c..c2e7606 100644 (file)
@@ -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: