PowerPC: Influence cpu/arch hwcap features via GLIBC_TUNABLES
[glibc.git] / sysdeps / unix / sysv / linux / powerpc / Makefile
blob24827efe7924c655c3961505eb80ce0b9ea10293
1 abi-variants := 32 64-v1 64-v2
2 abi-32-condition := __WORDSIZE == 32
3 abi-64-v1-condition := __WORDSIZE == 64 && _CALL_ELF != 2
4 abi-64-v2-condition := __WORDSIZE == 64 && _CALL_ELF == 2
6 ifeq ($(subdir),rt)
7 librt-routines += rt-sysdep
8 librt-shared-only-routines += rt-sysdep
9 endif
11 ifeq ($(subdir),stdlib)
12 gen-as-const-headers += ucontext_i.sym
13 endif
15 ifeq ($(subdir),elf)
16 # Otherwise tst-tls-dlinfo fails due to tst-tlsmod2.so using static tls.
17 ifeq ($(have-tls-get-addr-optimize),yes)
18 LDFLAGS-tst-tlsmod2.so += -Wl,--no-tls-get-addr-optimize
19 endif
20 endif
22 ifeq ($(subdir),misc)
23 sysdep_headers += bits/ppc.h
24 sysdep_routines += get_timebase_freq
25 tests-static += test-gettimebasefreq-static
26 tests += \
27 $(tests-static) \
28 test-gettimebasefreq \
29 test-powerpc-linux-sysconf \
30 tst-hwcap-tunables \
31 # tests
33 tst-hwcap-tunables-ARGS = -- $(host-test-program-cmd)
34 endif
36 ifeq ($(subdir),csu)
37 # to relocate stinfo->main
38 CPPFLAGS-libc-start.o += -I../elf
39 CPPFLAGS-libc-start.op += -I../elf
40 endif