aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/sysdeps/unix/sysv/linux/sparc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads/sysdeps/unix/sysv/linux/sparc/Makefile')
-rw-r--r--linuxthreads/sysdeps/unix/sysv/linux/sparc/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/linuxthreads/sysdeps/unix/sysv/linux/sparc/Makefile b/linuxthreads/sysdeps/unix/sysv/linux/sparc/Makefile
new file mode 100644
index 0000000000..22b3ee6c72
--- /dev/null
+++ b/linuxthreads/sysdeps/unix/sysv/linux/sparc/Makefile
@@ -0,0 +1,10 @@
+ifeq ($(subdir),linuxthreads)
+# gcc has /usr/lib{,64}/crti.o hardcoded in the specs file, because otherwise
+# it would normally find {64,32}bit crt[in].o.
+LDFLAGS-pthread.so += -specs=$(objpfx)specs
+before-compile += $(objpfx)specs
+generated += specs
+$(objpfx)specs:
+ $(CC) $(CFLAGS) $(CPPFLAGS) -dumpspecs \
+ | sed 's,/usr/lib\(\|64\)/\(crt[in]\.o\),\2,g' > $@
+endif