[icecast] statically link icecast2.

Jerome Alet alet at librelogiciel.com
Tue Feb 24 08:51:46 UTC 2004



On Mon, Feb 23, 2004 at 03:58:13PM +0000, Karl Heyes wrote:
> On Mon, 2004-02-23 at 15:35, Jerome Alet wrote:
> 
> > The only solution I can think of is to manually modify the 
> > automatically generated makefiles, which is IMHO completely stupid. 
> 
> Assuming gcc is used (the default many cases) and provided you have the
> static libs installed, you should be able to build it statically with
> 
> 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.

Any other idea ?

Thanks in advance

bye

Jerome Alet

-- 
"Now that I'm connected to the Internet, everybody seems 
to know that I've got a small dick." - Me.
--- >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