public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Mike Stump <mikestump@comcast.net>
To: gcc-patches List <gcc-patches@gcc.gnu.org>
Cc: Jack Howarth <howarth@bromo.med.uc.edu>
Subject: Turn on -pie on darwin11 and later
Date: Thu, 16 Jun 2011 05:51:00 -0000	[thread overview]
Message-ID: <ACBE52C1-542A-4643-97C7-5171AFB8DDCD@comcast.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 53 bytes --]

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



[-- Attachment #2: no-pie.patch.txt --]
[-- Type: text/plain, Size: 641 bytes --]

2011-06-15  Mike Stump  <mikestump@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	other threads:[~2011-06-16  5:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-16  5:51 Mike Stump [this message]
2011-06-16 12:11 ` Pedro Alves
2011-06-16 19:40   ` Mike Stump
2011-06-19 19:43     ` Mike Stump
2011-06-19 18:39 ` Mike Stump

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ACBE52C1-542A-4643-97C7-5171AFB8DDCD@comcast.net \
    --to=mikestump@comcast.net \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=howarth@bromo.med.uc.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).