]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* Makeconfig (soversions.mk): Convert % -> # in shlib-versions
authorRoland McGrath <roland@gnu.org>
Sun, 19 Mar 2000 00:33:02 +0000 (00:33 +0000)
committerRoland McGrath <roland@gnu.org>
Sun, 19 Mar 2000 00:33:02 +0000 (00:33 +0000)
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

ChangeLog
Makeconfig
shlib-versions

index 0dc9fbe718779d24941a583e446fdb47b2a6dba6..d8efcb08e9873a05a7de7927993a3a0fa1a32000 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
 
+       * 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
+
        * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
        and other errors that indicate a pseudo-receive happened, grok through
        the message buffer for port rights that need references fixed up.
index 6d87892d74f30da1a9efb4fd9e31c0e1f2ed353e..de1b1b186a91eb22f8e219575a269e8b7abba42a 100644 (file)
@@ -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; \
index 565d8e4c9b2d62ec64a6566c7e8d5057c85cc104..abf2fd49dec289bbfdd2dba24265ff0b3d371bd7 100644 (file)
@@ -5,6 +5,9 @@
 # list is processed, with earlier entries taking precedence over later
 # entries.  So loose patterns at the end of the list can give defaults.
 
+# This file can use cpp-style conditionals starting with % instead of #
+# to test the symbols defined in config.h by configure.
+
 # Configuration                Library versions
 # -------------                ------- --------
 
@@ -29,7 +32,11 @@ alpha.*-.*-linux.*   libc=6.1
 .*-.*-gnu-gnu*         libhurduser=0.0
 
 # libc.so.0.2 is for the Hurd alpha release 0.2.
+%ifdef USE_IN_LIBIO /* experimental only! */
+.*-.*-gnu-gnu*         libc=0.2.90.libio
+%else
 .*-.*-gnu-gnu*         libc=0.2
+%endif
 
 # The dynamic loader also requires different names.
 i.86-.*-linux.*                ld=ld-linux.so.2