]> git.ipfire.org Git - thirdparty/glibc.git/blob - sysdeps/sparc/Makefile
1be9a3db2ca12216abdee9de89aa6edbfecd22ca
[thirdparty/glibc.git] / sysdeps / sparc / Makefile
1 # The Sparc `long double' is a distinct type we support.
2 long-double-fcts = yes
3
4 pie-ccflag = -fPIE
5
6 ifeq ($(subdir),gmon)
7 sysdep_routines += sparc-mcount
8 endif
9
10 ifeq ($(subdir),db2)
11 CPPFLAGS += -DHAVE_SPINLOCKS=1 -DHAVE_ASSEM_SPARC_GCC=1
12 endif
13
14 ifeq ($(subdir),csu)
15 CPPFLAGS-crti.S += -fPIC
16 CPPFLAGS-crtn.S += -fPIC
17 endif
18
19 ifeq ($(subdir),elf)
20
21 # Lazy binding on SPARC rewrites the PLT sequence. See the Solaris
22 # Linker and Libraries Guide, section SPARC: Procedure Linkage Table.
23 # <https://docs.oracle.com/cd/E19455-01/816-0559/chapter6-1236/index.html>
24 test-xfail-check-wx-segment = *
25
26 endif # $(subdir) == elf
27
28 # nscd uses atomic_spin_nop which in turn requires cpu_relax
29 ifeq ($(subdir),nscd)
30 routines += cpu_relax
31 endif
32
33 # The assembler on SPARC needs the -fPIC flag even when it's assembler code.
34 ASFLAGS-.os += -fPIC