Sync elf.m4 with GCC tree
[deliverable/binutils-gdb.git] / config / mh-darwin
CommitLineData
4a233bd8
DD
1# The -mdynamic-no-pic ensures that the compiler executable is built without
2# position-independent-code -- the usual default on Darwin. This fix speeds
3# compiles by 3-5%.
4d7b5c97
JBG
4BOOT_CFLAGS += \
5`case ${host} in i?86-*-darwin* | powerpc-*-darwin*) \
6 echo -mdynamic-no-pic ;; esac;`
acf89cab 7
4d7b5c97
JBG
8# ld on Darwin versions >= 10.7 defaults to PIE executables. Disable this for
9# gcc components, since it is incompatible with our pch implementation.
10BOOT_LDFLAGS += \
11`case ${host} in *-*-darwin[1][1-9]*) echo -Wl,-no_pie ;; esac;`
12
13# Similarly, for cross-compilation.
14STAGE1_CFLAGS += \
15`case ${host} in i?86-*-darwin* | powerpc-*-darwin*)\
16 echo -mdynamic-no-pic ;; esac;`
17STAGE1_LDFLAGS += \
18`case ${host} in *-*-darwin[1][1-9]*) echo -Wl,-no_pie ;; esac;`
This page took 0.442102 seconds and 4 git commands to generate.