From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,6014cbf1d77efd04 X-Google-Attributes: gidfee84,public From: "D. Sean Davidson" Subject: Re: Which libraries are linked in? Date: 1998/06/10 Message-ID: <357EF930.9F7D6C4E@zk3.dec.com>#1/1 X-Deja-AN: 361489734 Content-Transfer-Encoding: 7bit References: <357D167C.4FAC4EE6@citicorp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Digital Equipment Corporation Newsgroups: comp.unix.osf.osf1 Asgar Ali wrote: > > On DEC Unix V4, does anyone know the command that will display a list of > libraries that an executable would use. > ie command produces > /usr/lib/xxx > /usr/lib/xx > /usr/directory/libalib.so etc. The /usr/bin/odump command will give you the libraries that are linked against and executable, even other libraries: % odump -D /usr/bin/X11/xterm | grep 'NEEDED:' | awk '{print $2}' libXaw.so libXmu.so libXt.so libSM.so libICE.so libXext.so libX11.so libc.so also RPATH: will show you the alternate search path for the shared libraries instead of the default.