mirror of
https://sourceware.org/git/glibc.git
synced 2025-09-02 16:01:20 +03:00
(preprocess-version): Add -traditional to gcc call. Cleanup sed calls.
This commit is contained in:
@@ -701,11 +701,11 @@ ifeq (yes, $(build-shared))
|
|||||||
# Commands to put in a pipeline to preprocess a file with # comments
|
# 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.
|
# %ifdef et al based on config.h settings or other %include'd files.
|
||||||
define preprocess-versions
|
define preprocess-versions
|
||||||
sed 's/#.*$$//;s/^[ ]*%/#/' \
|
sed '/^[ ]*#/d;s/^[ ]*%/#/' \
|
||||||
| $(CC) -E -undef -I$(common-objdir) -I$(..)include \
|
| $(CC) -traditional -E -undef -I$(common-objdir) -I$(..)include \
|
||||||
-include $(common-objpfx)config.h \
|
-include $(common-objpfx)config.h \
|
||||||
-x c - \
|
-x c - \
|
||||||
| sed 's/#.*$$//;/^[ ]*$$/d'
|
| sed '/^[ ]*#/d;/^[ ]*$$/d'
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# Process the shlib-versions file, which tells us what shared library
|
# Process the shlib-versions file, which tells us what shared library
|
||||||
|
Reference in New Issue
Block a user