From ad3d0728827d28b4d991730adf4abd2dd5bdda4a Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 24 Nov 2019 12:36:39 +0100 Subject: Fix cross compilation settings for lz4 Signed-off-by: David Oberhollenzer --- mkwinbins.sh | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/mkwinbins.sh b/mkwinbins.sh index b430496..7ea3db4 100755 --- a/mkwinbins.sh +++ b/mkwinbins.sh @@ -108,18 +108,27 @@ PKG_HASH="658ba6191fa44c92280d4aa2c271b0f4fbc0e34d249578dd05e50e76d0e5efcc" download pushd "$PKG_DIR" -make -j BUILD_STATIC="yes" CC="${W32_PREFIX}-gcc" \ - DLLTOOL="${W32_PREFIX}-dlltool" OS="Windows_NT" lib-release -make PREFIX="$W32_DIR" -C "lib" install +make -j BUILD_STATIC="no" BUILD_SHARED="yes" CC="${W32_PREFIX}-gcc" \ + DLLTOOL="${W32_PREFIX}-dlltool" WINDRES="${W32_PREFIX}-windres" \ + OS="Windows_NT" WINBASED="yes" PREFIX="$W32_DIR" \ + lib-release +make BUILD_STATIC="no" BUILD_SHARED="yes" CC="${W32_PREFIX}-gcc" \ + DLLTOOL="${W32_PREFIX}-dlltool" WINDRES="${W32_PREFIX}-windres" \ + OS="Windows_NT" WINBASED="yes" PREFIX="$W32_DIR" \ + -C "lib" install make clean -make -j BUILD_STATIC="yes" CC="${W64_PREFIX}-gcc" \ - DLLTOOL="${W64_PREFIX}-dlltool" OS="Windows_NT" lib-release -make PREFIX="$W64_DIR" -C "lib" install +make -j BUILD_STATIC="no" BUILD_SHARED="yes" CC="${W64_PREFIX}-gcc" \ + DLLTOOL="${W64_PREFIX}-dlltool" WINDRES="${W64_PREFIX}-windres" \ + OS="Windows_NT" WINBASED="yes" PREFIX="$W64_DIR" \ + lib-release +make BUILD_STATIC="no" BUILD_SHARED="yes" CC="${W64_PREFIX}-gcc" \ + DLLTOOL="${W64_PREFIX}-dlltool" WINDRES="${W64_PREFIX}-windres" \ + OS="Windows_NT" WINBASED="yes" PREFIX="$W64_DIR" \ + -C "lib" install popd - ################################## get zstd ################################## PKG_DIR="zstd-v1.4.4-win32" -- cgit v1.2.3