Debian Codegraph @

sysdeps/powerpc/Makefile

raw symbols SCIP
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 tests-static += tst-cache-ppc-static
18 tests-internal += tst-cache-ppc-static
19
20 ifeq (yes,$(build-shared))
21 modules-names += mod-cache-ppc
22 tests += tst-cache-ppc tst-cache-ppc-static-dlopen
23 tests-static += tst-cache-ppc-static-dlopen
24 test-internal-extras += mod-cache-ppc
25
26 mod-cache-ppc.so-no-z-defs = yes
27 tst-cache-ppc-static-dlopen-ENV = LD_LIBRARY_PATH=$(objpfx):$(common-objpfx):$(common-objpfx)elf
28 $(objpfx)tst-cache-ppc-static-dlopen.out: $(objpfx)mod-cache-ppc.so
29
30 $(objpfx)tst-cache-ppc: $(objpfx)mod-cache-ppc.so
31
32 # The test checks if the __tls_get_addr does not clobber caller-saved
33 # register, so disable the powerpc specific optimization to force a
34 # __tls_get_addr call.
35 LDFLAGS-tst-tls23-mod.so = -Wl,--no-tls-get-addr-optimize
36 endif
37
38 ifneq (no,$(multi-arch))
39 tests-static += tst-tlsifunc-static
40 tests-internal += tst-tlsifunc-static
41 ifeq (yes,$(build-shared))
42 tests-internal += tst-tlsifunc
43 endif # build-shared
44 endif # multi-arch
45 endif # subdir = elf
46
47 ifeq ($(subdir),setjmp)
48 ifeq (yes,$(build-shared))
49 sysdep_routines += novmx-longjmp novmx-sigjmp
50 endif
51 endif
52
53 ifeq ($(subdir),csu)
54 # get offset to rtld_global._dl_hwcap and rtld_global._dl_hwcap2
55 gen-as-const-headers += rtld-global-offsets.sym
56 # get offset to __locale_struct.__ctype_tolower
57 gen-as-const-headers += locale-defines.sym
58 endif
59
60 ifeq ($(subdir),nptl)
61 tests-internal += test-get_hwcap test-get_hwcap-static
62 tests-static += test-get_hwcap-static
63 endif
64
65 ifeq ($(subdir),misc)
66 sysdep_headers += sys/platform/ppc.h
67 tests += test-gettimebase
68 tests += tst-set_ppr
69 endif
70
71 ifeq ($(subdir),wcsmbs)
72 CFLAGS-wcscpy.c += -DUNROLL_NTIMES=8
73 CFLAGS-wcschr.c += -DUNROLL_NTIMES=8
74 CFLAGS-wcsrchr.c += -DUNROLL_NTIMES=8
75 endif