1# See Makeconfig regarding the use of default-abi.
2default-abi := 32
3
4asm-CPPFLAGS = -D__ASSEMBLY__
5ASFLAGS-.os += -fPIC
6LD += -melf32_sparc
7
8ifeq ($(subdir),stdlib)
9gen-as-const-headers += ucontext_i.sym
10endif
11
12# When I get this to work, this is the right thing
13ifeq ($(subdir),elf)
14CFLAGS-rtld.c += -mcpu=v8
15#rtld-routines += dl-sysdepsparc
16sysdep-others += lddlibc4
17install-bin += lddlibc4
18endif   # elf
19
20ifeq ($(subdir),math)
21# These 2 routines are normally in libgcc{.a,_s.so.1}.
22# However, sparc32 -mlong-double-128 libgcc relies on
23# glibc providing _Q_* routines and without these files
24# glibc relies on __multc3/__divtc3 only provided
25# by libgcc if configured with -mlong-double-128.
26# Provide these routines here as well.
27libm-routines += multc3 divtc3
28endif   # math
29