Updated to fedora-glibc-20060109T2152
[glibc/history.git] / sysdeps / powerpc / powerpc64 / Makefile
blobcf7c4337e09db2bfca4e123fc5f78fb074af4825
1 # Powerpc64 specific build options.
2 # this is ./sysdeps/powerpc/powerpc64/Makefile
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
13 ifeq ($(subdir),csu)
14 sysdep_routines += hp-timing
15 elide-routines.os += hp-timing
16 ifneq ($(elf),no)
17 # The initfini generation code doesn't work in the presence of -fPIC, so
18 # we use -fpic instead which is much better.
19 CFLAGS-initfini.s += -fpic -O1
20 endif
21 endif
23 ifeq ($(subdir),elf)
24 # help gcc inline asm code from dl-machine.h
25 +cflags += -finline-limit=2000
26 endif
28 ifeq ($(subdir),gmon)
29 # The assembly functions assume that fp arg regs are not trashed.
30 # Compiling with -msoft-float ensures that fp regs are not used
31 # for moving memory around.
32 CFLAGS-mcount.c += -msoft-float
33 endif