Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Mar 2004 02:17:17 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Mark <admin@asarian-host.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Do I really need to rebuilding *everything*
Message-ID:  <20040321081717.GA26638@dan.emsphone.com>
In-Reply-To: <200403210708.I2L78Y8J027993@asarian-host.net>
References:  <1079841282.664.10.camel@osaka> <20040321040035.GC2097@dan.emsphone.com> <200403210638.I2L6CT0D027199@asarian-host.net> <20040321065555.GE2097@dan.emsphone.com> <200403210708.I2L78Y8J027993@asarian-host.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Mar 21), Mark said:
> Pardon my daftness, but how is a 'file' against, say, httpd, like this,
> 
> file /usr/local/sbin/httpd
> /usr/local/sbin/httpd: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked (uses shared libs), not stripped
> 
> going to tell me whether httpd was dynamically linked against
> OpenSSL, or statically? It just tells me httpd uses shared libraries.
> Or does it mean it ONLY uses shared libraries?

You can also use the "ldd" command to list the specific shlibs linked
by a program, but you can usually assume that if it's dynamically
linked, it has dynamically linked all its libraries too. 
Theoretically, a program could have linked directly to
/usr/lib/libssl.a, but most of the time they just use -lssl, which will
prefer shared libraries over static.

-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040321081717.GA26638>