[PATCH] sparc64 libpthread

Jakub Jelinek jakub@redhat.com
Tue Apr 17 15:52:00 GMT 2001


Hi!

sparc64-linux gcc's specs has /usr/lib64/crti.o hardcoded if -m64 is given,
because the gcc driver would otherwise find the 32bit crti.o.
Changing this in gcc would require probably prescanning of certain options
in the driver before normal option processing because it would have to
differentiate paths added to various search paths, so IMHO it is easier to
do this in glibc.
The rest of sparc64 changes to follow once I wake up.

2001-04-18  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: New file.

--- libc/linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile.jj	Tue Apr 17 13:45:57 2001
+++ libc/linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile	Wed Apr 18 00:21:14 2001
@@ -0,0 +1,9 @@
+ifeq ($(subdir),linuxthreads)
+# gcc -m64 has /usr/lib64/crti.o hardcoded in the specs file, because otherwise
+# it would normally find 32bit crti.o.
+LDFLAGS-pthread.so += -specs=$(objpfx)specs
+before-compile += $(objpfx)specs
+postclean-generated += $(subdir)specs
+$(objpfx)specs:
+	$(CC) $(CFLAGS) $(CPPFLAGS) -dumpspecs | sed 's_/usr/lib64/crti.o_crti.o_g' > $@
+endif

	Jakub



More information about the Libc-hacker mailing list