about summary refs log tree commit diff
path: root/sysdeps/sparc/sparc64/elf/Makefile
blob: 8da8a88c1bf409f31da8ec29cd7f251bd8256273 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# The assembler on SPARC needs the -fPIC flag even when it's assembler code.
ASFLAGS-.os = -fPIC

ifeq ($(subdir), csu)
extra-objs += crtbegin.o crtend.o crtbeginS.o crtendS.o
install-lib += crtbegin.o crtend.o crtbeginS.o crtendS.o

CPPFLAGS-crtbeginS.S = -fPIC -DPIC
CPPFLAGS-crtendS.S = -fPIC -DPIC
endif