[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: modules have a soname?
From: |
Simon Josefsson |
Subject: |
Re: modules have a soname? |
Date: |
Tue, 10 Nov 2015 10:40:24 +0100 |
User-agent: |
Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.4 (gnu/linux) |
Simon Josefsson <address@hidden> 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:
address@hidden:~/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" )
address@hidden:~/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