This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
static linking
- From: Arnauld Michelizza <am at zehc dot net>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Fri, 20 Sep 2002 15:01:19 +0200 (CEST)
- Subject: static linking
I wonder if there is a way to make a static binary from a dynamically
linked one.
For example, `dyn' is a dynamically linked binary :
$ ldd dyn
libc.so.6 => /lib/libc.so.6 (0x40020000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
I have tried the following to obtain a static binary :
$ gcc -static -z muldefs dyn
But with no succes.
--
Arnauld Michelizza