* mh-darwin: Turn off -pie on darwin11 and later.

2011-06-15  Mike Stump  <mikest...@comcast.net>

        * mh-darwin: Turn off -pie on darwin11 and later.

Index: mh-darwin
===================================================================
--- mh-darwin   (revision 174625)
+++ mh-darwin   (working copy)
@@ -1,5 +1,7 @@
 # The -mdynamic-no-pic ensures that the compiler executable is built without
 # position-independent-code -- the usual default on Darwin. This fix speeds
 # compiles by 3-5%.
-
 BOOT_CFLAGS += -mdynamic-no-pic
+
+# Ensure we don't try and use -pie, as it is incompatible with pch.
+BOOT_LDFLAGS=`case ${host} in *-*-darwin[1][1-9]*) echo -Wl,-no_pie ;; esac;`

Reply via email to