2000-03-19 Roland McGrath <roland@baalperazim.frob.com>
authorroland <roland>
Mon, 20 Mar 2000 03:16:24 +0000 (03:16 +0000)
committerroland <roland>
Mon, 20 Mar 2000 03:16:24 +0000 (03:16 +0000)
* Makeconfig (soversion.i): Use only first match for each lib.

Makeconfig

index a74d450..daae310 100644 (file)
@@ -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