about summary refs log tree commit diff
path: root/Makeconfig
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 /Makeconfig
parent0ecdeb26c013a2aedd0b5e449aaa925a48bb62e6 (diff)
downloadglibc-af2603143fb1f93ba2e59628bdf899cbe37bd02a.tar.gz
glibc-af2603143fb1f93ba2e59628bdf899cbe37bd02a.tar.xz
glibc-af2603143fb1f93ba2e59628bdf899cbe37bd02a.zip
* Makeconfig (soversion.i): Use only first match for each lib.
Diffstat (limited to 'Makeconfig')
-rw-r--r--Makeconfig7
1 files changed, 5 insertions, 2 deletions
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