about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2000-03-20 03:16:32 +0000
committerRoland McGrath <roland@gnu.org>2000-03-20 03:16:32 +0000
commitaf2603143fb1f93ba2e59628bdf899cbe37bd02a (patch)
treec35638e2cdf483adbec9ef10b7332c17d2d7f314
parent0ecdeb26c013a2aedd0b5e449aaa925a48bb62e6 (diff)
downloadglibc-af2603143fb1f93ba2e59628bdf899cbe37bd02a.tar.gz
glibc-af2603143fb1f93ba2e59628bdf899cbe37bd02a.tar.xz
glibc-af2603143fb1f93ba2e59628bdf899cbe37bd02a.zip
* Makeconfig (soversion.i): Use only first match for each lib.
-rw-r--r--ChangeLog2
-rw-r--r--Makeconfig7
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 04bf87d3bd..0e0839c300 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
 
+	* Makeconfig (soversion.i): Use only first match for each lib.
+
 	* Makeconfig (soversion.i): Pass -undef to $(CC) -E.
 
 	* Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
diff --git a/Makeconfig b/Makeconfig
index a74d4500bc..daae310cee 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -689,8 +689,11 @@ $(common-objpfx)soversions.i: $(..)shlib-versions $(..)Makeconfig \
 	    test `expr '$(config-machine)-$(config-vendor)-$(config-os)' \
 		       : "$$conf"` != 0 || continue; \
 	    lib=`echo $$version | sed 's/=.*$$//'`; \
-	    number=`echo $$version | sed "s/^.*=//"`; \
-	    echo $$lib $$number $$setname; \
+	    if eval test -z "\$${versioned_$${lib}}"; then \
+	      eval versioned_$${lib}=yes; \
+	      number=`echo $$version | sed "s/^.*=//"`; \
+	      echo $$lib $$number $$setname; \
+	    fi; \
 	  done > $@T; exit 0
 	mv -f $@T $@
 $(common-objpfx)soversions.mk: $(common-objpfx)soversions.i