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.
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).
add config.default
STD_LIBS += /usr/lib/x86_64-linux-gnu/libbz2.a
thanks
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.