aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2022-12-27 23:37:30 -0500
committerAdam Harrison <adamdharrison@gmail.com>2022-12-27 23:37:30 -0500
commit966e02a42546949170a1deb5e38dc93b63fdf6fb (patch)
tree17b2d74611cd6ebb37af43585e4a8bc6c7455172 /build.sh
parent37e00da1c6714346487eb1a0ec21afe704f712ef (diff)
downloadlite-xl-plugin-manager-966e02a42546949170a1deb5e38dc93b63fdf6fb.tar.gz
lite-xl-plugin-manager-966e02a42546949170a1deb5e38dc93b63fdf6fb.zip
Added in "post" key.
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 2c7b497..64eca82 100755
--- a/build.sh
+++ b/build.sh
@@ -17,7 +17,7 @@ CMAKE_DEFAULT_FLAGS=" $CMAKE_DEFAULT_FLAGS -DCMAKE_BUILD_TYPE=Release -DCMAKE_PR
mkdir -p lib/prefix/include lib/prefix/lib
if [[ "$@" != *"-lz"* ]]; then
[ ! -e "lib/zlib" ] && echo "Make sure you've cloned submodules. (git submodule update --init --depth=1)" && exit -1
- [[ ! -e "lib/zlib/build" && $OSTYPE != 'msys'* ]] && cd lib/zlib && mkdir build && cd build && $CC -I.. ../*.c -c && ar rc libz.a *.o && cp libz.a ../../prefix/lib && cp ../*.h ../../prefix/include && cd ../../../
+ [[ ! -e "lib/zlib/build" && $OSTYPE != 'msys'* ]] && cd lib/zlib && mkdir build && cd build && $CC -D_LARGEFILE64_SOURCE -I.. ../*.c -c && ar rc libz.a *.o && cp libz.a ../../prefix/lib && cp ../*.h ../../prefix/include && cd ../../../
LDFLAGS="$LDFLAGS -l:libz.a"
fi
if [[ "$@" != *"-lmbedtls"* && "$@" != *"-lmbedcrypto"* ]]; then