X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=README;h=744360afb9edf41f143da6f98773217f56e45249;hb=b9e7124a96d4ccc050a29a98361197d211796e32;hp=69b7baeee6fc8f69d14a4884bf071672e9bf66fc;hpb=d48835ed248033dcbc23b465a0d7408aa5c2ae3b;p=d2df-sdl.git diff --git a/README b/README index 69b7bae..744360a 100644 --- a/README +++ b/README @@ -24,3 +24,25 @@ Replace -O3 with -g -gl to enable debugging features. Run the game with --gdb wh prevent it from eating exceptions. Windows binaries will require the appropriate DLLs (SDL2.dll, SDL2_mixer.dll or FMODEx.dll, ENet.dll). + + +Static Linking +-------------- + +See ( http://repo.or.cz/d2df-binlib.git ) repo for prebuild dynamic and static libraries. + +It is now possible to link windoze LibJIT and ENet as static libs. + +First, you need to clone ( http://repo.or.cz/d2df-binlib.git ) (repo with prebuilt windoze libs). +Then, you can use: + -dLIBJIT_WINDOZE_STATIC -- static LibJIT + -dLIBENET_WINDOZE_STATIC -- static ENet + +Don't forget to specify lib*.a location with -Fi<...> + +I (ketmar) used mingw-gcc 7.1.0 to build static libs; some other .a libs were taken directly from mingw. +building libs is easy: just fire msys, install all dependencies, and do: + + ./configure --enable-static --disable-shared && make + +This should produce working .a library suitable for static linking.