summaryrefslogtreecommitdiff
path: root/libc/sysdeps/sparc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/sparc/Makefile')
-rw-r--r--libc/sysdeps/sparc/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/sysdeps/sparc/Makefile b/libc/sysdeps/sparc/Makefile
index 40323a064..73b926554 100644
--- a/libc/sysdeps/sparc/Makefile
+++ b/libc/sysdeps/sparc/Makefile
@@ -1,6 +1,12 @@
# 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