Statically compiling on Linux

Get help with compiling or installing the game, and discuss announcements of new official releases.

Moderators: Forum Moderators, Developers

Post Reply
niko
Posts: 1
Joined: December 19th, 2005, 10:04 am

Statically compiling on Linux

Post by niko » December 19th, 2005, 10:13 am

I tried to compile the latest wesnoth sources statically, but after all, the executable file have a dinamically linked libraries.

What i'm doing wrong?

Code: Select all

/tmp/wesnoth-1.0.2$ ./configure --prefix=/tmp/wesnoth --enable-static
/tmp/wesnoth-1.0.2$ make
/tmp/wesnoth-1.0.2$ make install
But ldd shows this:

Code: Select all

/tmp/wesnoth-1.0.2$ cd ../wesnoth
/tmp/wesnoth$ ldd ./bin/wesnoth
        linux-gate.so.1 =>  (0xffffe000)
        libSDL_image-1.2.so.0 => /usr/lib/libSDL_image-1.2.so.0 (0xb7eca000)
        libSDL_mixer-1.2.so.0 => /usr/lib/libSDL_mixer-1.2.so.0 (0xb7e5c000)
        libSDL_net-1.2.so.0 => /usr/lib/libSDL_net-1.2.so.0 (0xb7e57000)
        libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0xb7dcf000)
        libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7dbd000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7d4a000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb7d36000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb7c76000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7b8f000)
        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7b6d000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7b62000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7a34000)
        libtiff.so.4 => /usr/lib/libtiff.so.4 (0xb79e3000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb79c4000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb799f000)
        libvorbisfile.so.3 => /usr/lib/libvorbisfile.so.3 (0xb7997000)
        libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0xb7970000)
        libogg.so.0 => /usr/lib/libogg.so.0 (0xb796b000)
        libsmpeg-0.4.so.0 => /usr/lib/libsmpeg-0.4.so.0 (0xb7913000)
        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb790f000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb7902000)
        /lib/ld-linux.so.2 (0xb7ef8000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb78ff000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb78fb000)


ott
Inactive Developer
Posts: 838
Joined: September 28th, 2004, 10:20 am

Post by ott » December 28th, 2005, 3:58 pm

As far as I can tell, --enable-static has been broken for a long time (it just prepends libtool --mode-link to the usual command line, which doesn't seem to be right). I posted a commandline to generate a static binary for Mac OS X in a message to the dev list a while back: https://mail.gna.org/public/wesnoth-dev ... 00020.html
This quote is not attributable to Antoine de Saint-Exupéry.

Post Reply