]>
Commit | Line | Data |
---|---|---|
cfc91acd RM |
1 | # Powerpc64 specific build options. |
2 | # this is ./sysdeps/powerpc/powerpc64/Makefile | |
3 | ||
d54bcd1e RM |
4 | # Each TOC entry takes 8 bytes and the TOC holds up to 2^16 bytes, |
5 | # or 8192 entries. | |
6 | # If -fpic is not specified, the latest gcc-3.2.1 now generates | |
7 | # different code for call stubs (without the TOC reload). | |
8 | # Shared objects need the TOC reload so specify -fpic. | |
9 | ifeq (yes,$(build-shared)) | |
10 | pic-ccflag = -fpic | |
11 | endif | |
cfc91acd RM |
12 | |
13 | ifeq ($(subdir),csu) | |
14 | ifneq ($(elf),no) | |
a334319f UD |
15 | # The initfini generation code doesn't work in the presence of -g1 or |
16 | # higher, so we use -g0. | |
17 | CFLAGS-initfini.s = -g0 -fpic -O1 | |
cfc91acd RM |
18 | endif |
19 | endif | |
20 | ||
21 | ifeq ($(subdir),elf) | |
22 | # help gcc inline asm code from dl-machine.h | |
11986c68 | 23 | +cflags += -finline-limit=2000 |
cfc91acd | 24 | endif |
d7d06f79 UD |
25 | |
26 | ifeq ($(subdir),gmon) | |
27 | # The assembly functions assume that fp arg regs are not trashed. | |
28 | # Compiling with -msoft-float ensures that fp regs are not used | |
29 | # for moving memory around. | |
a334319f | 30 | CFLAGS-mcount.c += -msoft-float |
d7d06f79 | 31 | endif |