aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-01-16 22:22:07 -0500
committerAdam Harrison <adamdharrison@gmail.com>2023-01-16 22:22:07 -0500
commit799a428671bfac627fa8866dee2144bec07c206c (patch)
treed76ced04af2ea8fd4609d887db8456c75c603622 /build.sh
parent883e9e5921dbb3bf10f6cd7659ceb6c1cd1b4396 (diff)
downloadlite-xl-plugin-manager-799a428671bfac627fa8866dee2144bec07c206c.tar.gz
lite-xl-plugin-manager-799a428671bfac627fa8866dee2144bec07c206c.zip
Putting CFLAGS in the right order.v0.9993
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 d8e4b3c..80fbf88 100755
--- a/build.sh
+++ b/build.sh
@@ -18,7 +18,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 && CFLAGS="$CFLAGS" $CC -O3 -D_LARGEFILE64_SOURCE -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 $CFLAGS -O3 -D_LARGEFILE64_SOURCE -I.. ../*.c -c && $AR rc libz.a *.o && cp libz.a ../../prefix/lib && cp ../*.h ../../prefix/include && cd ../../../
LDFLAGS="$LDFLAGS -lz"
fi
if [[ "$@" != *"-lmbedtls"* && "$@" != *"-lmbedcrypto"* ]]; then