]> git.ipfire.org Git - thirdparty/glibc.git/blob - sysdeps/powerpc/Makefile
1813c78dd8dfa52a5ddf27e34f5d81d55e2d4137
[thirdparty/glibc.git] / sysdeps / powerpc / Makefile
1 ifeq ($(subdir),math)
2 libm-support += fenv_const fe_nomask t_sqrt
3
4 # These routines have not been tested, so it's probable they don't work;
5 # and they don't provide the complete list of FP routines. So there's
6 # no point in compiling them.
7 #sysdep_routines += q_feq q_fne q_utoq q_dtoq q_itoq q_stoq q_neg q_ulltoq \
8 # q_lltoq q_qtou q_qtoi q_qtoull q_qtoll q_qtos
9
10 tests += test-arith test-arithf
11 LDLIBS-test-arith = libm
12 LDLIBS-test-arithf = libm
13 endif
14
15 ifeq ($(subdir),gmon)
16 sysdep_routines += ppc-mcount
17 endif
18
19 # On PPC, -fpic works until the GOT contains 2^15 bytes, and possibly
20 # more depending on how clever the linker is. Each GOT entry takes 4 bytes,
21 # so that's at least 8192 entries. Since libc only uses about 1200 entries,
22 # we want to use -fpic, because this generates fewer relocs.
23 ifeq (yes,$(build-shared))
24 pic-ccflag = -fpic
25 endif
26
27 # The initfini generation code doesn't work in the presence of -fPIC, so
28 # we use -fpic instead which is much better.
29 ifeq ($(subdir),csu)
30 CFLAGS-initfini.s = -g0 -fpic
31 endif
32
33 ifeq ($(subdir),string)
34 CFLAGS-memcmp.c += -Wno-uninitialized
35 endif