Skip to content

Commit

Permalink
2009-01-21 Roland McGrath <roland@redhat.com>
Browse files Browse the repository at this point in the history
	* Makeconfig (%.v.i): Strip trailing # comments,
	not only whole-line comments.
  • Loading branch information
Roland McGrath committed Jan 22, 2009
1 parent f00d47a commit 6a7b0fc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makeconfig
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -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 $@
Expand Down

0 comments on commit 6a7b0fc

Please sign in to comment.