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