From 40c36ee0b1ae1e0204d6c56dfc62a03f31a22347 Mon Sep 17 00:00:00 2001 From: z411 Date: Wed, 29 Dec 2021 00:36:05 +0000 Subject: [PATCH] Update Shared libraries (buildfiles) --- Shared-libraries-(buildfiles).md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Shared-libraries-(buildfiles).md b/Shared-libraries-(buildfiles).md index 664c21f..1451f4c 100644 --- a/Shared-libraries-(buildfiles).md +++ b/Shared-libraries-(buildfiles).md @@ -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. -- 2.39.2