glibc/linuxthreads/sysdeps/unix/sysv/linux/sparc/Makefile
Roland McGrath b52e43ee5f 2002-09-12 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: Move...
	* sysdeps/unix/sysv/linux/sparc/Makefile: ...here.
	Replace /usr/lib/crt[in].o with crt[in].o too.
2002-09-17 01:47:39 +00:00

11 lines
370 B
Makefile

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