This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Turn on -pie on darwin11 and later
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Mike Stump <mikestump at comcast dot net>, Jack Howarth <howarth at bromo dot med dot uc dot edu>
- Date: Thu, 16 Jun 2011 13:01:03 +0100
- Subject: Re: Turn on -pie on darwin11 and later
- References: <ACBE52C1-542A-4643-97C7-5171AFB8DDCD@comcast.net>
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?
--
Pedro Alves