This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Turn on -pie on darwin11 and later


On Jun 16, 2011, at 5:01 AM, Pedro Alves wrote:
> 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?

Yes, fixed.  Thanks for the review.

Index: config/mh-darwin
===================================================================
--- config/mh-darwin	(revision 175089)
+++ config/mh-darwin	(working copy)
@@ -4,4 +4,4 @@
 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;`
+BOOT_LDFLAGS += `case ${host} in *-*-darwin[1][1-9]*) echo -Wl,-no_pie ;; esac;`


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]