powerpc __tls_get_addr call optimization
[glibc.git] / sysdeps / unix / sysv / linux / powerpc / Makefile
blobc89ed9ec7dfc222e34a525c7c5d0ba62e155369d
1 abi-variants := 32 64-v1 64-v2
2 abi-32-options := -U__powerpc64__
3 abi-32-condition := __WORDSIZE == 32
4 abi-64-v1-options := -D__powerpc64__ -U_CALL_ELF -D_CALL_ELF=1
5 abi-64-v1-condition := __WORDSIZE == 64 && _CALL_ELF != 2
6 abi-64-v2-options := -D__powerpc64__ -U_CALL_ELF -D_CALL_ELF=2
7 abi-64-v2-condition := __WORDSIZE == 64 && _CALL_ELF == 2
9 ifeq ($(subdir),rt)
10 librt-routines += rt-sysdep
11 endif
13 ifeq ($(subdir),stdlib)
14 gen-as-const-headers += ucontext_i.sym
15 endif
17 ifeq ($(subdir),elf)
18 sysdep_routines += dl-vdso
19 ifeq ($(build-shared),yes)
20 # This is needed for DSO loading from static binaries.
21 sysdep-dl-routines += dl-static
22 endif
23 # Otherwise tst-tls-dlinfo fails due to tst-tlsmod2.so using static tls.
24 LDFLAGS-tst-tlsmod2.so += -Wl,--no-tls-get-addr-optimize
25 endif
27 ifeq ($(subdir),misc)
28 sysdep_headers += bits/ppc.h
29 sysdep_routines += get_timebase_freq
30 tests += test-gettimebasefreq
31 endif
33 ifeq ($(subdir),nptl)
34 libpthread-routines += sysdep
35 libpthread-sysdep_routines += elision-lock elision-unlock elision-timed \
36 elision-trylock
37 endif