gdb: add target_ops::supports_displaced_step
[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
f91ca6bc
IB
3# compiles by 3-5%. Don't add it if the compiler doesn't also support
4# -mno-dynamic-no-pic to undo it.
5DARWIN_MDYNAMIC_NO_PIC := \
4d7b5c97 6`case ${host} in i?86-*-darwin* | powerpc-*-darwin*) \
f91ca6bc
IB
7 $(CC) -S -xc /dev/null -o /dev/null -mno-dynamic-no-pic 2>/dev/null \
8 && echo -mdynamic-no-pic ;; esac`
9DARWIN_GCC_MDYNAMIC_NO_PIC := \
10`case ${host} in i?86-*-darwin* | powerpc-*-darwin*) \
11 $(CC) -S -xc /dev/null -o /dev/null -mno-dynamic-no-pic 2>/dev/null \
12 || echo -mdynamic-no-pic ;; esac`
acf89cab 13
4d7b5c97
JBG
14# ld on Darwin versions >= 10.7 defaults to PIE executables. Disable this for
15# gcc components, since it is incompatible with our pch implementation.
f91ca6bc
IB
16DARWIN_NO_PIE := `case ${host} in *-*-darwin[1][1-9]*) echo -Wl,-no_pie ;; esac;`
17
18BOOT_CFLAGS += $(DARWIN_MDYNAMIC_NO_PIC)
19BOOT_LDFLAGS += $(DARWIN_NO_PIE)
4d7b5c97
JBG
20
21# Similarly, for cross-compilation.
f91ca6bc
IB
22STAGE1_CFLAGS += $(DARWIN_MDYNAMIC_NO_PIC)
23STAGE1_LDFLAGS += $(DARWIN_NO_PIE)
24
25# Without -mno-dynamic-no-pic support, add -mdynamic-no-pic just to later
26# stages when we know it is built with gcc.
27STAGE2_CFLAGS += $(DARWIN_GCC_MDYNAMIC_NO_PIC)
28STAGE3_CFLAGS += $(DARWIN_GCC_MDYNAMIC_NO_PIC)
29STAGE4_CFLAGS += $(DARWIN_GCC_MDYNAMIC_NO_PIC)
This page took 0.583273 seconds and 4 git commands to generate.