DEADSOFTWARE

it is now possible to link windoze LibJIT and ENet as static libs (see commit comments)
[d2df-sdl.git] / README
diff --git a/README b/README
index 69b7baeee6fc8f69d14a4884bf071672e9bf66fc..744360afb9edf41f143da6f98773217f56e45249 100644 (file)
--- 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.