Remove abi-*-options compiler flags
[glibc.git] / sysdeps / unix / sysv / linux / mips / Makefile
blob8217f42e75e5d31641c182d0123e1fbf6da51a82
1 ifeq ($(subdir),signal)
2 #sysdep_routines += sigsuspend
3 endif
5 ifeq ($(subdir),misc)
6 sysdep_routines += cachectl cacheflush sysmips _test_and_set
8 sysdep_headers += sys/cachectl.h sys/sysmips.h sys/tas.h
9 endif
11 abi-variants := o32_soft o32_hard o32_soft_2008 o32_hard_2008
12 abi-variants += n32_soft n32_hard n32_soft_2008 n32_hard_2008
13 abi-variants += n64_soft n64_hard n64_soft_2008 n64_hard_2008
15 ifeq (,$(filter $(default-abi),$(abi-variants)))
16 Unknown ABI, must be one of $(abi-variants)
17 endif
19 abi-includes := sgidefs.h
21 # _MIPS_SIM_ABI32 == 1, _MIPS_SIM_NABI32 == 2, _MIPS_SIM_ABI64 == 3
22 abi-o32_soft-condition := !defined(__mips_nan2008) \
23 && defined(__mips_soft_float) \
24 && (_MIPS_SIM == _MIPS_SIM_ABI32)
25 abi-o32_hard-condition := !defined(__mips_nan2008) \
26 && defined(__mips_hard_float) \
27 && (_MIPS_SIM == _MIPS_SIM_ABI32)
28 abi-o32_soft_2008-condition := defined(__mips_nan2008) \
29 && defined(__mips_soft_float) \
30 && (_MIPS_SIM == _MIPS_SIM_ABI32)
31 abi-o32_hard_2008-condition := defined(__mips_nan2008) \
32 && defined(__mips_hard_float) \
33 && (_MIPS_SIM == _MIPS_SIM_ABI32)
34 abi-n32_soft-condition := !defined(__mips_nan2008) \
35 && defined(__mips_soft_float) \
36 && (_MIPS_SIM == _MIPS_SIM_NABI32)
37 abi-n32_hard-condition := !defined(__mips_nan2008) \
38 && defined(__mips_hard_float) \
39 && (_MIPS_SIM == _MIPS_SIM_NABI32)
40 abi-n32_soft_2008-condition := defined(__mips_nan2008) \
41 && defined(__mips_soft_float) \
42 && (_MIPS_SIM == _MIPS_SIM_NABI32)
43 abi-n32_hard_2008-condition := defined(__mips_nan2008) \
44 && defined(__mips_hard_float) \
45 && (_MIPS_SIM == _MIPS_SIM_NABI32)
46 abi-n64_soft-condition := !defined(__mips_nan2008) \
47 && defined(__mips_soft_float) \
48 && (_MIPS_SIM == _MIPS_SIM_ABI64)
49 abi-n64_hard-condition := !defined(__mips_nan2008) \
50 && defined(__mips_hard_float) \
51 && (_MIPS_SIM == _MIPS_SIM_ABI64)
52 abi-n64_soft_2008-condition := defined(__mips_nan2008) \
53 && defined(__mips_soft_float) \
54 && (_MIPS_SIM == _MIPS_SIM_ABI64)
55 abi-n64_hard_2008-condition := defined(__mips_nan2008) \
56 && defined(__mips_hard_float) \
57 && (_MIPS_SIM == _MIPS_SIM_ABI64)
59 ifeq ($(subdir),elf)
60 ifeq ($(build-shared),yes)
61 # This is needed for DSO loading from static binaries.
62 sysdep-dl-routines += dl-static
64 sysdep_routines += dl-vdso
65 endif
67 # Supporting non-executable stacks on MIPS requires changes to both
68 # the Linux kernel and glibc. See
69 # <https://sourceware.org/ml/libc-alpha/2016-01/msg00567.html> and
70 # <https://sourceware.org/ml/libc-alpha/2016-01/msg00719.html>.
71 test-xfail-check-execstack = yes
72 endif
74 ifeq ($(subdir),stdlib)
75 gen-as-const-headers += ucontext_i.sym
76 endif