On 2003-06-03(Tue) 10:58:42 +0200, Götz Waschk wrote:
> it would be nice if the find_requires script would parse the
> dependancies of static libraries, but how to do this? It's easy to
> find out the dependant libs of shared libraries, but AFAIK shared
> libraries only contain information about which symbols are unresolved,
> but no information on where to get that symbols. Has anyone thought

Seems you can obtain dependency info via objdump too:

[EMAIL PROTECTED] lib]$ objdump -p /usr/lib/libqtmcop.so.1 | grep NEEDED
  NEEDED      libmcop.so.1
  NEEDED      libdl.so.2
  NEEDED      libqt-mt.so.3
  NEEDED      libpng.so.3
  NEEDED      libz.so.1
  NEEDED      libXext.so.6
  NEEDED      libX11.so.6
  NEEDED      libSM.so.6
  NEEDED      libICE.so.6
  NEEDED      libpthread.so.0
  NEEDED      libstdc++.so.5
  NEEDED      libm.so.6
  NEEDED      libc.so.6
  NEEDED      libgcc_s.so.1

But objdump -p don't show any dep info about static archives.


> about using the libtool .la files to get the dependant libs? Or maybe
> it would be possible to use the dependany information from the shared
> libraries for static libs, that means if libfoo.so depends on
> libbar.so, does libfoo.a depends on libbar.a? 

I don't know much info about it. 

Abel

> -- 
> What difference does it make to the dead, the orphans and the
> homeless, whether the mad destruction is wrought under the name of
> totalitarianism or the holy name of liberty or democracy?
>     Mahatma Gandhi (1869 - 1948), "Non-Violence in Peace and War"
> 

-- 
Abel Cheung
Linux counter #256983   | http://counter.li.org
GPG Key: (0xC67186FF)   | http://deaddog.org/gpg.asc
Key fingerprint: 671C C7AE EFB5 110C D6D1  41EE 4152 E1F1 C671 86FF

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to