gcc and some static libs
From: Markus Wenke (M.Wenke_at_web.de)
Date: 08/27/04
- Next message: John Reiser: "Re: gcc and some static libs"
- Previous message: Måns Rullgård: "Re: Persistent System Memory"
- Next in thread: John Reiser: "Re: gcc and some static libs"
- Reply: John Reiser: "Re: gcc and some static libs"
- Reply: Paul Pluzhnikov: "Re: gcc and some static libs"
- Reply: QNils_O=2E_Sel=E5sdal=22?=: "Re: gcc and some static libs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 27 Aug 2004 14:43:37 +0200
Hi,
I want to create a program with gcc (g++). In this prog most of the
static libs should be linked static. At the moment ldd shows this:
ldd test:
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x4001b000)
libm.so.6 => /lib/libm.so.6 (0x400d3000)
libc.so.6 => /lib/libc.so.6 (0x400f6000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x4022c000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
but I want that ldd says this:
ldd test:
libc.so.6 => /lib/libc.so.6 (0x400f6000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
If I use "-static" all libs are linked static, and the result is to big,
besides the gcc prefer the dynamic libs.
What can I do?
thanks in advance
Markus
- Next message: John Reiser: "Re: gcc and some static libs"
- Previous message: Måns Rullgård: "Re: Persistent System Memory"
- Next in thread: John Reiser: "Re: gcc and some static libs"
- Reply: John Reiser: "Re: gcc and some static libs"
- Reply: Paul Pluzhnikov: "Re: gcc and some static libs"
- Reply: QNils_O=2E_Sel=E5sdal=22?=: "Re: gcc and some static libs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|