2006-01-18 23:25:13 +00:00
|
|
|
# The Sparc `long double' is a distinct type we support.
|
|
|
|
long-double-fcts = yes
|
|
|
|
|
2008-05-20 07:48:50 +00:00
|
|
|
ifeq ($(subdir),gmon)
|
|
|
|
sysdep_routines += sparc-mcount
|
|
|
|
endif
|
|
|
|
|
2010-02-26 07:52:07 +00:00
|
|
|
ifeq ($(subdir),csu)
|
2012-02-16 20:54:05 +00:00
|
|
|
CPPFLAGS-crti.S += -fPIC
|
|
|
|
CPPFLAGS-crtn.S += -fPIC
|
2010-02-26 07:52:07 +00:00
|
|
|
endif
|
2012-03-28 21:25:42 +00:00
|
|
|
|
2020-03-02 13:24:27 +00:00
|
|
|
ifeq ($(subdir),elf)
|
|
|
|
|
|
|
|
# Lazy binding on SPARC rewrites the PLT sequence. See the Solaris
|
|
|
|
# Linker and Libraries Guide, section SPARC: Procedure Linkage Table.
|
|
|
|
# <https://docs.oracle.com/cd/E19455-01/816-0559/chapter6-1236/index.html>
|
|
|
|
test-xfail-check-wx-segment = *
|
|
|
|
|
|
|
|
endif # $(subdir) == elf
|
|
|
|
|
2019-11-12 19:11:10 +00:00
|
|
|
# nscd uses atomic_spin_nop which in turn requires cpu_relax
|
|
|
|
ifeq ($(subdir),nscd)
|
|
|
|
routines += cpu_relax
|
|
|
|
endif
|
|
|
|
|
2012-03-28 21:25:42 +00:00
|
|
|
# The assembler on SPARC needs the -fPIC flag even when it's assembler code.
|
|
|
|
ASFLAGS-.os += -fPIC
|