]> git.rm.cloudns.org Git - xonotic/xonotic.wiki.git/commitdiff
Update Shared libraries (buildfiles)
authorz411 <electrik.persona@gmail.com>
Wed, 29 Dec 2021 00:36:05 +0000 (00:36 +0000)
committerz411 <electrik.persona@gmail.com>
Wed, 29 Dec 2021 00:36:05 +0000 (00:36 +0000)
Shared-libraries-(buildfiles).md

index 664c21fb47b6c794c0026b25eb77c0e68c7f8fd5..1451f4c526aa790961a1e0c6a4a5db9681333f08 100644 (file)
@@ -280,6 +280,26 @@ Obtainment instructions:
 * download as MSYS2 Package [1] in x86 and x64 versions: https://packages.msys2.org/base/mingw-w64-gmp
 * use dll from `bin` folder
 
+Cross-compiling:
+
+```
+d0=$(pwd)
+GMPVER="6.2.1"
+
+curl -o gmp-$GMPVER.tar.xz https://gmplib.org/download/gmp/gmp-$GMPVER.tar.xz
+tar xf gmp-$GMPVER.tar.xz
+rm gmp-$GMPVER.tar.xz
+
+mkdir out
+mkdir build
+cd build
+"$d0/gmp-$GMPVER/configure" --prefix="$d0/out" --host=x86_64-w64-mingw32 --with-pic --enable-fat --disable-static --enable-shared
+make
+make install
+cd "$d0"
+cp out/bin/libgmp-10.dll ~/Games/xonotic/misc/buildfiles/win64/libgmp-10.dll
+```
+
 # libode
 Is not loaded under Windows and crashes the game if it is and a map is loaded up.
 Also it is not statically linked and thus requires libstdc++-6.dll and libgcc_s_sjlj-1.dll.