]> git.ipfire.org Git - thirdparty/glibc.git/blob - sysdeps/powerpc/Makefile
powerpc: Fix build failures with current GCC
[thirdparty/glibc.git] / sysdeps / powerpc / Makefile
1 ifeq ($(subdir),string)
2 CFLAGS-memcmp.c += -Wno-uninitialized
3 endif
4
5 ifeq ($(subdir),elf)
6 # extra shared linker files to link into dl-allobjs.so and libc
7 sysdep-dl-routines += dl-machine hwcapinfo
8 sysdep_routines += dl-machine hwcapinfo
9 # extra shared linker files to link only into dl-allobjs.so
10 sysdep-rtld-routines += dl-machine hwcapinfo
11
12 modules-names += mod-tlsopt-powerpc
13 mod-tlsopt-powerpc.so-no-z-defs = yes
14 tests += tst-tlsopt-powerpc
15 $(objpfx)tst-tlsopt-powerpc: $(objpfx)mod-tlsopt-powerpc.so
16
17 ifneq (no,$(multi-arch))
18 tests-static += tst-tlsifunc-static
19 tests-internal += tst-tlsifunc-static
20 ifeq (yes,$(build-shared))
21 tests-internal += tst-tlsifunc
22 endif # build-shared
23 endif # multi-arch
24 endif # subdir = elf
25
26 ifeq ($(subdir),setjmp)
27 ifeq (yes,$(build-shared))
28 sysdep_routines += novmx-longjmp novmx-sigjmp
29 endif
30 endif
31
32 ifeq ($(subdir),csu)
33 # get offset to rtld_global._dl_hwcap and rtld_global._dl_hwcap2
34 gen-as-const-headers += rtld-global-offsets.sym
35 # get offset to __locale_struct.__ctype_tolower
36 gen-as-const-headers += locale-defines.sym
37 endif
38
39 ifeq ($(subdir),nptl)
40 tests-internal += test-get_hwcap test-get_hwcap-static
41 tests-static += test-get_hwcap-static
42 endif
43
44 ifeq ($(subdir),misc)
45 sysdep_headers += sys/platform/ppc.h
46 tests += test-gettimebase
47 tests += tst-set_ppr
48
49 # This test is expected to run and exit with EXIT_UNSUPPORTED on
50 # processors that do not implement the Power ISA 2.06 or greater.
51 # But the test makes use of instructions from Power ISA 2.06 and 2.07.
52 CFLAGS-tst-set_ppr.c += -Wa,-many
53 endif
54
55 ifeq ($(subdir),wcsmbs)
56 CFLAGS-wcscpy.c += -DUNROLL_NTIMES=8
57 CFLAGS-wcschr.c += -DUNROLL_NTIMES=8
58 CFLAGS-wcsrchr.c += -DUNROLL_NTIMES=8
59 endif