2002-09-17 01:47:39 +00:00
|
|
|
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 \
|
2003-02-21 19:25:36 +00:00
|
|
|
| sed 's,\(/usr/lib\(\|64\)/\|^\|\([^/a-z]\)\)\(crt[in]\.o\),\3./\4,g' > $@.new
|
|
|
|
mv -f $@.new $@
|
2002-09-17 01:47:39 +00:00
|
|
|
endif
|