Gentoo Archives: gentoo-embedded

From: Peter Stuge <peter@×××××.se>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] Re: Problem with ROOT
Date: Sun, 28 Oct 2007 02:35:24
Message-Id: 20071028022400.29357.qmail@stuge.se
In Reply to: [gentoo-embedded] Re: Problem with ROOT by Marc Blumentritt
1 On Sat, Oct 27, 2007 at 10:01:19PM +0200, Marc Blumentritt wrote:
2 > AFAIK you can compile binaries either static, which would include
3 > all needed libs into the binary,
4
5 Yes, as long as all required libraries are available as static libs.
6
7
8 > or you compile with shared libs, which are pulled in at runtime.
9
10 Right.
11
12
13 > Could you explain why, why there are static libs? Are they needed
14 > as build time dependencies, when you compile static bins?
15
16 Correct.
17
18
19 You can use ldd binary (e.g. ldd /usr/bin/mplayer) to verify which
20 dynamic libraries are needed for a binary. Note that one library may
21 depend on other libraries, the default output of ldd is the aggregate
22 of all dependencies - ie. what is needed to execute it, rather than
23 what it was built against.
24
25
26 //Peter
27 --
28 gentoo-embedded@g.o mailing list