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 |