about summary refs log tree commit diff
path: root/linuxthreads/sysdeps/unix/sysv/linux/sparc/Makefile
blob: 22b3ee6c7213148838f13ada35335dbb426ad60b (plain) (blame)
1
2
3
4
5
6
7
8
9
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