2002-08-30 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@gnu.org>
Sat, 31 Aug 2002 05:31:17 +0000 (05:31 +0000)
committerRoland McGrath <roland@gnu.org>
Sat, 31 Aug 2002 05:31:17 +0000 (05:31 +0000)
* sysdeps/unix/sysv/linux/x86_64/Makefile ($(objpfx)specs): Massage
crtn.o pathname too.

linuxthreads/sysdeps/unix/sysv/linux/x86_64/Makefile

index b65099f..f5ad508 100644 (file)
@@ -6,5 +6,7 @@ LDFLAGS-pthread.so += -specs=$(objpfx)specs
 before-compile += $(objpfx)specs
 generated += specs
 $(objpfx)specs:
-       $(CC) $(CFLAGS) $(CPPFLAGS) -dumpspecs | sed 's_/usr/lib64/crti.o_crti.o_g' > $@
+       $(CC) $(CFLAGS) $(CPPFLAGS) -dumpspecs \
+       | sed 's,/usr/lib64/\(crt[in]\.o\),\1,g' > $@.new
+       mv -f $@.new $@
 endif