diff mbox

Turn on -pie on darwin11 and later

Message ID ACBE52C1-542A-4643-97C7-5171AFB8DDCD@comcast.net
State New
Headers show

Commit Message

Mike Stump June 16, 2011, 1:33 a.m. UTC
* mh-darwin: Turn off -pie on darwin11 and later.
2011-06-15  Mike Stump  <mikestump@comcast.net>

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

Comments

Pedro Alves June 16, 2011, 12:01 p.m. UTC | #1
On Thursday 16 June 2011 02:33:50, Mike Stump wrote:
>  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;`

Shouldn't this use += like BOOT_CFLAGS?
Mike Stump June 19, 2011, 6:19 p.m. UTC | #2
On Jun 15, 2011, at 6:33 PM, Mike Stump wrote:
> 	* mh-darwin: Turn off -pie on darwin11 and later.

Also backported for gcc 4.5.4 and 4.6.1.
diff mbox

Patch

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;`