(preprocess-version): Add -traditional to gcc call. Cleanup sed calls.

This commit is contained in:
Ulrich Drepper 2000-12-20 00:40:12 +00:00
parent 7d2d622a4e
commit 60289c2381
1 changed files with 3 additions and 3 deletions

View File

@ -701,11 +701,11 @@ ifeq (yes, $(build-shared))
# Commands to put in a pipeline to preprocess a file with # comments
# %ifdef et al based on config.h settings or other %include'd files.
define preprocess-versions
sed 's/#.*$$//;s/^[ ]*%/#/' \
| $(CC) -E -undef -I$(common-objdir) -I$(..)include \
sed '/^[ ]*#/d;s/^[ ]*%/#/' \
| $(CC) -traditional -E -undef -I$(common-objdir) -I$(..)include \
-include $(common-objpfx)config.h \
-x c - \
| sed 's/#.*$$//;/^[ ]*$$/d'
| sed '/^[ ]*#/d;/^[ ]*$$/d'
endef
# Process the shlib-versions file, which tells us what shared library