* Makeconfig (soversion.i): Use only first match for each lib.

This commit is contained in:
Roland McGrath 2000-03-20 03:16:32 +00:00
parent 0ecdeb26c0
commit af2603143f
2 changed files with 7 additions and 2 deletions

View file

@ -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)

View 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