OSDN Git Service

* mh-darwin: Turn off -pie on darwin11 and later.
[pf3gnuchains/gcc-fork.git] / config / mh-darwin
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%.
4 BOOT_CFLAGS += -mdynamic-no-pic
5
6 # Ensure we don't try and use -pie, as it is incompatible with pch.
7 BOOT_LDFLAGS=`case ${host} in *-*-darwin[1][1-9]*) echo -Wl,-no_pie ;; esac;`