summary refs log tree commit diff
path: root/Makeconfig
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2009-01-22 11:25:16 +0000
committerRoland McGrath <roland@gnu.org>2009-01-22 11:25:16 +0000
commit6a7b0fc65f9949e2fe91e09677ca960fe9584cab (patch)
tree7b1d62db50823357c56eac2a98ab50fc3aad299b /Makeconfig
parentf00d47a36f231efd49b8088cd74c9b092f9dbc4a (diff)
downloadglibc-6a7b0fc65f9949e2fe91e09677ca960fe9584cab.tar.gz
glibc-6a7b0fc65f9949e2fe91e09677ca960fe9584cab.tar.xz
glibc-6a7b0fc65f9949e2fe91e09677ca960fe9584cab.zip
2009-01-21 Roland McGrath <roland@redhat.com>
	* Makeconfig (%.v.i): Strip trailing # comments,
	not only whole-line comments.
Diffstat (limited to 'Makeconfig')
-rw-r--r--Makeconfig5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makeconfig b/Makeconfig
index 83e14094c4..e00cfe64db 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -1,4 +1,4 @@
-# Copyright (C) 1991-2003,2004,2005,2006,2007,2008
+# Copyright (C) 1991-2003,2004,2005,2006,2007,2008,2009
 #	Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 
@@ -794,7 +794,8 @@ ifeq (yes, $(build-shared))
 # listing both its input files, and any header files that it may reference
 # (but no commands).
 %.v.i: $(common-objpfx)config.h
-	sed '/^[ 	]*#/d;s/^[ 	]*%/#/' $(filter-out FORCE %.h,$^) \
+	sed 's/#.*$$//;//^[ 	]*$$/d;s/^[ 	]*%/#/' \
+	    $(filter-out FORCE %.h,$^) \
 	| $(CC) -E -undef $(CPPFLAGS) -x assembler-with-cpp - \
 		   > $@T
 	mv -f $@T $@