diff --git a/jenkins/scripts/cross_compile.sh b/jenkins/scripts/cross_compile.sh index f441b9f..71140e1 100755 --- a/jenkins/scripts/cross_compile.sh +++ b/jenkins/scripts/cross_compile.sh @@ -15,14 +15,14 @@ TOOLCHAIN_FILE=$TRAVIS_BUILD_DIR/toolchain-win64.cmake ## Install zlib for windows cd /tmp/zlib_cross export CC=x86_64-w64-mingw32-gcc-posix -./configure --prefix=/tmp/zlib_cross -make -f win32/Makefile.gcc BINARY_PATH=/tmp/zlib_cross/bin INCLUDE_PATH=/tmp/zlib_cross/include LIBRARY_PATH=/tmp/zlib_cross/lib PREFIX=x86_64-w64-mingw32- install +nice -n 5 chrt -b 0 ./configure --prefix=/tmp/zlib_cross +nice -n 5 chrt -b 0 make -f win32/Makefile.gcc BINARY_PATH=/tmp/zlib_cross/bin INCLUDE_PATH=/tmp/zlib_cross/include LIBRARY_PATH=/tmp/zlib_cross/lib PREFIX=x86_64-w64-mingw32- install ## Install openssl for windows cd /tmp/openssl_cross export CC= -./Configure --cross-compile-prefix=x86_64-w64-mingw32- --prefix=/tmp/openssl_cross mingw64 shared -sudo make install +nice -n 5 chrt -b 0 ./Configure --cross-compile-prefix=x86_64-w64-mingw32- --prefix=/tmp/openssl_cross mingw64 shared +nice -n 5 chrt -b 0 sudo make install # ====== Prepare TdLib # Cross compilation preparation (also needed for split sources)