xref: /netbsd-src/external/gpl3/gdb/dist/config/mh-darwin (revision 413d532bcc3f62d122e56d92e13ac64825a40baf)
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%.
4BOOT_CFLAGS += -mdynamic-no-pic
5
6# Ensure we don't try and use -pie, as it is incompatible with pch.
7BOOT_LDFLAGS += `case ${host} in *-*-darwin[1][1-9]*) echo -Wl,-no_pie ;; esac;`
8