Consolidate vDSO macros and usage
[glibc.git] / sysdeps / unix / sysv / linux / aarch64 / Makefile
blob6b4e620896b825cb549a4d621d3ef28fad90eb83
1 ifeq ($(subdir),csu)
2 sysdep_routines += __read_tp libc-__read_tp
3 static-only-routines += __read_tp
4 shared-only-routines += libc-__read_tp
5 endif
7 ifeq ($(subdir),elf)
8 sysdep_routines += dl-vdso
9 sysdep-rtld-routines += __read_tp
10 ifeq ($(build-shared),yes)
11 # This is needed for DSO loading from static binaries.
12 sysdep-dl-routines += dl-static
13 endif
14 endif
16 ifeq ($(subdir),misc)
17 sysdep_headers += sys/elf.h
18 endif
20 ifeq ($(subdir),stdlib)
21 gen-as-const-headers += ucontext_i.sym
22 endif
24 abi-variants := lp64
25 abi-variants += lp64_be
27 ifeq (,$(filter $(default-abi),$(abi-variants)))
28 Unknown ABI, must be one of $(abi-variants)
29 endif
31 abi-lp64-options := -U__AARCH64EB__
32 abi-lp64-condition := !defined __AARCH64EB__
34 abi-lp64_be-options := -D__AARCH64EB__
35 abi-lp64_be-condition := defined __AARCH64EB__