Statically compiling on Linux

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

Moderator: Forum Moderators

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

Statically compiling on Linux

Post by niko »

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 =>  (0xffffe000) => /usr/lib/ (0xb7eca000) => /usr/lib/ (0xb7e5c000) => /usr/lib/ (0xb7e57000) => /usr/lib/ (0xb7dcf000) => /lib/tls/i686/cmov/ (0xb7dbd000) => /usr/lib/ (0xb7d4a000) => /usr/lib/ (0xb7d36000) => /usr/lib/ (0xb7c76000) => /usr/lib/ (0xb7b8f000) => /lib/tls/i686/cmov/ (0xb7b6d000) => /lib/ (0xb7b62000) => /lib/tls/i686/cmov/ (0xb7a34000) => /usr/lib/ (0xb79e3000) => /usr/lib/ (0xb79c4000) => /usr/lib/ (0xb799f000) => /usr/lib/ (0xb7997000) => /usr/lib/ (0xb7970000) => /usr/lib/ (0xb796b000) => /usr/lib/ (0xb7913000) => /lib/tls/i686/cmov/ (0xb790f000) => /usr/lib/ (0xb7902000)
        /lib/ (0xb7ef8000) => /usr/lib/ (0xb78ff000) => /usr/lib/ (0xb78fb000)

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

Post by ott »

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: ... 00020.html
This quote is not attributable to Antoine de Saint-Exupéry.
Post Reply