Simon Josefsson <[email protected]> writes: >> In other words, this is probably an upstream Makefile issue rather than a >> problem with either libtool or dpkg-shlibdeps. > > Upstream do use -avoid-version in their Makefile.am, but I just noticed > that it might not be used in all places. I'll double check.
It doesn't work even in the cases where upstream's Makefile.am uses
-avoid-version. Libtool is still adding a -Wl,-soname:
jas@latte:~/src/jabberd2-jas/storage$ /bin/bash ../libtool --tag=CC
--mode=link gcc -I../c2s -I.. -g -O2 -funsigned-char -module -avoid-version -o
authreg_anon.la -rpath /usr/local/lib/jabberd authreg_anon.lo -lexpat -L../util
-lssl -lcrypto -lgsasl -ludns -lidn -lexpat -lresolv -lcrypt -ldl -lz
libtool: link: rm -fr .libs/authreg_anon.la .libs/authreg_anon.lai
.libs/authreg_anon.so
libtool: link: gcc -shared -fPIC -DPIC .libs/authreg_anon.o -L../util -lssl
-lcrypto /usr/lib/libgsasl.so -ludns -lidn
/usr/lib/x86_64-linux-gnu/libexpat.so -lresolv -lcrypt -ldl -lz -O2
-Wl,-soname -Wl,authreg_anon.so -o .libs/authreg_anon.so
libtool: link: ( cd ".libs" && rm -f "authreg_anon.la" && ln -s
"../authreg_anon.la" "authreg_anon.la" )
jas@latte:~/src/jabberd2-jas/storage$
Is this intentional, or should we start to track down how -Wl,-soname
was added and treat that as a bug? The manual says:
'-avoid-version'
Tries to avoid versioning (*note Versioning::) for libraries and
modules, i.e. no version information is stored and no symbolic
links are created. If the platform requires versioning, this
option has no effect.
I don't know whether libtool regards the debian/gnu/linux/elf platform
as requiring versioning or not.
This is libtool 2.4.2 from Debian, if it matters.
/Simon
signature.asc
Description: PGP signature
_______________________________________________ https://lists.gnu.org/mailman/listinfo/libtool
