News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

static libbz2

Started by Frank, August 27, 2017, 08:13:15 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Frank

What do I need to change the libbz2 statically in the program file?

I would also like to change the user directory. Where can I find the corresponding entry.

Ters

First of all, you need to have the static library file for libbz2 installed in your compiler's/system's lib directory. Then you need to set up config.default to build Simutrans with static linkage. That will statically link everything (except pthread on some mingws).

Frank

add config.default
STD_LIBS += /usr/lib/x86_64-linux-gnu/libbz2.a


thanks

Ters

No. Just uncomment the line with the static flag. Just adding what you did means that it will try and link with bzip2 twice, probably once statically and once dynamically. Some macros might also be wrong, causing you to still end up with dynamic linking.