Add windows cache directories fix yml Fix YAML Get java first on windows build Try to replace mingw with msys in script Try windows build without the toolchain, since we are bringing our own taskkill was failing Different libtool package name Add autoconf to msys2 Install mingw-w64-x86_64-toolchain but with each package instead of a group which interrupts installation Msys2 cant find make, try using alias Make everything executable, add some debugging logs to windowsBuild Skip building, debug make Find all make files Another attempt Attempt different alias Try with symbolic link Attempt mingw64 Forgot to change folder Attempt N Set -e+e Try with cygwin mingw again Move Add more debug logs Add +e to see what fails now try direct make
51 lines
1.2 KiB
Bash
Executable File
51 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
## and then borrowed and slightly modified from https://github.com/datkt/sodium/configure
|
|
## borrowed from https://github.com/sodium-friends/sodium-native/blob/master/configure
|
|
PREFIX="${PREFIX:-$PWD/static-mingw-x86-64}"
|
|
KONAN="${KONAN:-$HOME/.konan}"
|
|
ARCH=${ARCH:-$(uname -m)}
|
|
echo $PREFIX
|
|
echo $KONAN
|
|
echo $ARCH
|
|
cd libsodium
|
|
|
|
./autogen.sh -s -f
|
|
|
|
if [ -z "$SYSROOT" ]; then
|
|
case $(uname -a) in
|
|
**Linux*x86_64**)
|
|
echo "Linux env"
|
|
GCC=${GCC:-gcc}
|
|
GCC=gcc
|
|
export CC=$(find $KONAN/dependencies -wholename *${ARCH/_/-}/bin/*$GCC | head -n1)
|
|
;;
|
|
|
|
**Linux*aarch64**)
|
|
echo "Linux ARM env"
|
|
GCC=${GCC:-gcc}
|
|
GCC=gcc
|
|
export CC=$(find $KONAN/dependencies -wholename *${ARCH/_/-}/bin/*$GCC | head -n1)
|
|
;;
|
|
|
|
|
|
**Darwin*x86_64**)
|
|
echo "Darwin env"
|
|
GCC=${GCC:-clang}
|
|
export CC=$(find $KONAN/dependencies -wholename *${ARCH/_/-}/bin/*$GCC | head -n1)
|
|
;;
|
|
|
|
**MSYS*x86_64**)
|
|
echo "Msys env"
|
|
GCC=clang.exe
|
|
export CC=$(find $KONAN/dependencies -wholename *${ARCH}*/bin/*$GCC | head -n1)
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
echo "CC"
|
|
echo $CC
|
|
fi
|
|
|
|
./configure --disable-dependecy-tracking --prefix=$PREFIX "$@"
|