glibc/sysdeps/sparc/Makefile
David S. Miller 18c9d62b9c Make sparc's -fPIC addition to ASFLAGS-.os more robust.
* sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
	* sysdeps/sparc/sparc32/Makefile: rather than here...
	* sysdeps/sparc/sparc64/Makefile: and here.
2012-03-28 14:25:42 -07:00

21 lines
422 B
Makefile

# The Sparc `long double' is a distinct type we support.
long-double-fcts = yes
pie-ccflag = -fPIE
ifeq ($(subdir),gmon)
sysdep_routines += sparc-mcount
endif
ifeq ($(subdir),db2)
CPPFLAGS += -DHAVE_SPINLOCKS=1 -DHAVE_ASSEM_SPARC_GCC=1
endif
ifeq ($(subdir),csu)
CPPFLAGS-crti.S += -fPIC
CPPFLAGS-crtn.S += -fPIC
endif
# The assembler on SPARC needs the -fPIC flag even when it's assembler code.
ASFLAGS-.os += -fPIC