aboutsummaryrefslogtreecommitdiff
path: root/Makeconfig
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2000-03-19 00:33:02 +0000
committerRoland McGrath <roland@gnu.org>2000-03-19 00:33:02 +0000
commit882688521994c2329242212a61dd2a7c44eadbc6 (patch)
tree47c0f76522ab094eb05ca38e7a82f42f34c5f266 /Makeconfig
parenta5733c28449fd19f81f382160d6544e55a78aa7b (diff)
downloadglibc-882688521994c2329242212a61dd2a7c44eadbc6.zip
glibc-882688521994c2329242212a61dd2a7c44eadbc6.tar.gz
glibc-882688521994c2329242212a61dd2a7c44eadbc6.tar.bz2
* Makeconfig (soversions.mk): Convert % -> # in shlib-versions
after stripping # comments, and then run it through cpp. This allows things like "%ifdef FOO" based on config.h settings. * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
Diffstat (limited to 'Makeconfig')
-rw-r--r--Makeconfig4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makeconfig b/Makeconfig
index 6d87892..de1b1b1 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -685,7 +685,9 @@ $(common-objpfx)soversions.mk: $(..)shlib-versions $(..)Makeconfig \
$(wildcard $(patsubst %,$(..)%/shlib-versions,$(subdirs))) \
$(..)shlib-versions"; \
for f in $$file; do \
- sed 's/#.*$$//' $$f | while read conf versions; do \
+ sed 's/#.*$$//;s/^[ ]*%/#/' $$f \
+ | $(CC) -include $(common-objpfx)config.h -E -x c - \
+ | while read conf versions; do \
test -n "$$versions" && \
test `expr '$(config-machine)-$(config-vendor)-$(config-os)' \
: "$$conf"` != 0 || continue; \