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