about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-08-31 05:31:17 +0000
committerRoland McGrath <roland@gnu.org>2002-08-31 05:31:17 +0000
commitc5e341eec9e3528190b76afc68613471d2e3e2b5 (patch)
tree7bd3f1729ae640b53fcc327e95d1280bb72e3a0e
parent795726d6ab37f2bb524cfdd7a59d0455b7b81202 (diff)
downloadglibc-c5e341eec9e3528190b76afc68613471d2e3e2b5.tar.gz
glibc-c5e341eec9e3528190b76afc68613471d2e3e2b5.tar.xz
glibc-c5e341eec9e3528190b76afc68613471d2e3e2b5.zip
2002-08-30 Roland McGrath <roland@redhat.com>
	* sysdeps/unix/sysv/linux/x86_64/Makefile ($(objpfx)specs): Massage
	crtn.o pathname too.
-rw-r--r--linuxthreads/sysdeps/unix/sysv/linux/x86_64/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/linuxthreads/sysdeps/unix/sysv/linux/x86_64/Makefile b/linuxthreads/sysdeps/unix/sysv/linux/x86_64/Makefile
index b65099f48f..f5ad5084c4 100644
--- a/linuxthreads/sysdeps/unix/sysv/linux/x86_64/Makefile
+++ b/linuxthreads/sysdeps/unix/sysv/linux/x86_64/Makefile
@@ -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