]> sourceware.org Git - glibc.git/blame - sysdeps/powerpc/Makefile
Update.
[glibc.git] / sysdeps / powerpc / Makefile
CommitLineData
a808d541
UD
1# We always want to use the new mnemonic syntax even if we are on a RS6000
2# machine.
3+cflags += -mnew-mnemonics -Wa,-mppc -mpowerpc
4asm-CPPFLAGS += -Wa,-mppc
5
1f205a47 6ifeq ($(subdir),math)
217eb19b 7libm-support += fenv_const fe_nomask
1f205a47 8endif
9a0a462c
UD
9
10ifeq ($(subdir),gmon)
11sysdep_routines += ppc-mcount
12endif
13
a808d541 14ifeq ($(subdir),misc)
9b51f431 15sysdep_routines += gprsave0 gprrest0 gprsave1 gprrest1 fprsave fprrest
a808d541
UD
16endif
17
9a0a462c
UD
18# On PPC, -fpic works until the GOT contains 2^15 bytes, and possibly
19# more depending on how clever the linker is. Each GOT entry takes 4 bytes,
36ecfe56 20# so that's at least 8192 entries. Since libc only uses about 2000 entries,
9a0a462c
UD
21# we want to use -fpic, because this generates fewer relocs.
22ifeq (yes,$(build-shared))
650425ce 23pic-ccflag = -fpic
9a0a462c
UD
24endif
25
36ecfe56 26ifeq ($(subdir),csu)
a808d541 27ifneq ($(elf),no)
9a0a462c
UD
28# The initfini generation code doesn't work in the presence of -fPIC, so
29# we use -fpic instead which is much better.
9a0a462c 30CFLAGS-initfini.s = -g0 -fpic
36ecfe56
UD
31
32# There is no benefit to using sdata for these objects, and the user
33# of the library should be able to control what goes into sdata.
34CFLAGS-init.o = -G0
35CFLAGS-gmon-start.o = -G0
9a0a462c 36endif
a808d541 37endif
650425ce
UD
38
39ifeq ($(subdir),string)
40CFLAGS-memcmp.c += -Wno-uninitialized
41endif
052b6a6c
UD
42
43ifeq ($(subdir),elf)
e39e6956 44# extra shared linker files to link into dl-allobjs.so and libc
10878c33 45sysdep-dl-routines += dl-machine
e39e6956
UD
46sysdep_routines += dl-machine
47# extra shared linker files to link only into dl-allobjs.so
48sysdep-rtld-routines += dl-machine dl-start
052b6a6c 49endif
This page took 0.120556 seconds and 5 git commands to generate.