summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authormrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>2011-06-16 01:31:38 +0000
committermrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>2011-06-16 01:31:38 +0000
commit1b14a23f0a6ff9e9d060dd53c0577e233e426363 (patch)
tree5a83dafcf52d726fb7e0fa024b2fb4382224da77 /config
parent918d7d480abab4845a06c683929522f7d69f0fdb (diff)
downloadgcc-1b14a23f0a6ff9e9d060dd53c0577e233e426363.tar.gz
* mh-darwin: Turn off -pie on darwin11 and later.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175089 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config')
-rw-r--r--config/ChangeLog4
-rw-r--r--config/mh-darwin4
2 files changed, 7 insertions, 1 deletions
diff --git a/config/ChangeLog b/config/ChangeLog
index ec4a0bef6c8..5b23e6f383c 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,7 @@
+2011-06-15 Mike Stump <mikestump@comcast.net>
+
+ * mh-darwin: Turn off -pie on darwin11 and later.
+
2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
* bootstrap-lto.mk: Remove obsolete requirement.
diff --git a/config/mh-darwin b/config/mh-darwin
index 66f68b664a9..6a2f15f8efa 100644
--- a/config/mh-darwin
+++ b/config/mh-darwin
@@ -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;`