Add C2X timespec_getres
[glibc.git] / sysdeps / sparc / Makefile
blobc123b527b555069f9f416e86d74791b4a3f9739e
1 # The Sparc `long double' is a distinct type we support.
2 long-double-fcts = yes
4 pie-ccflag = -fPIE
6 ifeq ($(subdir),gmon)
7 sysdep_routines += sparc-mcount
8 endif
10 ifeq ($(subdir),db2)
11 CPPFLAGS += -DHAVE_SPINLOCKS=1 -DHAVE_ASSEM_SPARC_GCC=1
12 endif
14 ifeq ($(subdir),csu)
15 CPPFLAGS-crti.S += -fPIC
16 CPPFLAGS-crtn.S += -fPIC
17 endif
19 ifeq ($(subdir),elf)
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 = *
26 endif # $(subdir) == elf
28 # nscd uses atomic_spin_nop which in turn requires cpu_relax
29 ifeq ($(subdir),nscd)
30 routines += cpu_relax
31 endif
33 ifeq ($(subdir), nptl)
34 libpthread-routines += cpu_relax
35 endif
37 # The assembler on SPARC needs the -fPIC flag even when it's assembler code.
38 ASFLAGS-.os += -fPIC