[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PROPOSAL: libtool archive (`*.la) files in `-dev' packages



At 17:48 -0700 1999-05-04, Joey Hess wrote:
Reading some .la files, they seem to contain only things like libraries the
library depends on and versioning info.  Is there really any info in
those files that cannot be obtained in other ways on linux?

Nope, that is all in the shared object itself, assuming that .la files really only ever contain the info you have seen.

On linux, ldd of a .so file can automatically find out dependancy info. I
don't know how to find out versioning info by examining a .so. (if someone
knows, please tell me; debhelper could use a clean way to get sonames!)

I'm not sure if you mean DT_SONAME or DT_NEEDED.

For the former:
jk@cerberus:[~]% objdump -p /lib/libc-2.1.1.so | awk '/SONAME/ {print $2}'
libc.so.6

The latter:
jk@cerberus:[~]% objdump -p /lib/libc-2.1.1.so | awk '/NEEDED/ {print $2}'
ld-linux.so.2

I suggest not using the term versioning to refer to sonames, it is too easy to confuse it with symbol versioning.
--
Joel Klecker (aka Espy)                    Debian GNU/Linux Developer
<URL:mailto:jk@espy.org>                 <URL:mailto:espy@debian.org>
<URL:http://web.espy.org/>               <URL:http://www.debian.org/>


Reply to: