aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-05-29 15:58:15 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-05-29 15:58:15 +0000
commitacf89cab13c1826d83dce1c7ae8ea805bc034bda (patch)
treea1f1fcdf3c48daf47cf314eafb313c85890bcaf4 /config/mh-darwin
parent * ld-tic6x/shlib-1b.rd: Update expected readelf output. (diff)
downloadbinutils-gdb-acf89cab13c1826d83dce1c7ae8ea805bc034bda.tar.gz
binutils-gdb-acf89cab13c1826d83dce1c7ae8ea805bc034bda.tar.bz2
binutils-gdb-acf89cab13c1826d83dce1c7ae8ea805bc034bda.zip
Resync config/ from GCC.
Diffstat (limited to 'config/mh-darwin')
-rw-r--r--config/mh-darwin4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/mh-darwin b/config/mh-darwin
index 66f68b664a9..19bf26568b5 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;`