about summary refs log tree commit diff
path: root/sysdeps/sparc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/sparc/Makefile')
-rw-r--r--sysdeps/sparc/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/sparc/Makefile b/sysdeps/sparc/Makefile
index 735e4a40db..45609d55f1 100644
--- a/sysdeps/sparc/Makefile
+++ b/sysdeps/sparc/Makefile
@@ -14,4 +14,6 @@ endif
 ifeq ($(subdir),csu)
 # get offset to rtld_global._dl_hwcap
 gen-as-const-headers += rtld-global-offsets.sym
+CPPFLAGS-crti.S += -fPIC
+CPPFLAGS-crtn.S += -fPIC
 endif