[icecast] statically link icecast2.

Karl Heyes karl at xiph.org
Tue Feb 24 12:45:36 UTC 2004

On Tue, 2004-02-24 at 08:51, Jerome Alet wrote:
> > make CFLAGS=-static
> This doesn't seem to work. If I use the file command on the
> icecast executable, it still says that the file is dynamically linked.
> If I use ldd I've got :
> port50-2:~/icecast-2.0.0/src$ ldd icecast 
>         libssl.so.0.9.7 => /usr/lib/i686/cmov/libssl.so.0.9.7 (0x4002a000)
>         libcrypto.so.0.9.7 => /usr/lib/i686/cmov/libcrypto.so.0.9.7 (0x40059000)
>         libdl.so.2 => /lib/libdl.so.2 (0x4014a000)
>         libz.so.1 => /usr/lib/libz.so.1 (0x4014e000)
>         libpthread.so.0 => /lib/libpthread.so.0 (0x4015f000)
>         libm.so.6 => /lib/libm.so.6 (0x401b0000)
>         libc.so.6 => /lib/libc.so.6 (0x401d2000)
>         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
> port50-2:~/icecast-2.0.0/src$
> All the libraries above exist both as a .so and as a .a
> Interestingly, when I compile without the CFLAGS=-static, there are
> additionnal libraries when I do an ldd, and executable is smaller, 
> so I suspect that the statical linking worked somewhat, but not
> completely : in fact it worked for all "non-system" libraries.

maybe you need to add other flags to gcc to get all the shared lib
references, try

make CFLAGS="-static -static-libgcc"


<p>--- >8 ----
List archives:  http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send a message to 'icecast-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.

More information about the Icecast mailing list