aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-06-27 10:26:42 -0400
committerAdam Harrison <adamdharrison@gmail.com>2023-06-27 10:26:42 -0400
commit02586b9fa37bc6ad42bd1e59321bb2334bec6433 (patch)
treee348a62d8cb87b4914b27bdf6fc1825b53812cb4 /build.sh
parentf69e69b5bb5ecff0bf8154b9aab0e1c8a1dc265e (diff)
downloadlite-xl-plugin-manager-02586b9fa37bc6ad42bd1e59321bb2334bec6433.tar.gz
lite-xl-plugin-manager-02586b9fa37bc6ad42bd1e59321bb2334bec6433.zip
Fixed some minor bugs, moved json to a library, updated manifest to reflect this.
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 6805532..e04999c 100755
--- a/build.sh
+++ b/build.sh
@@ -21,7 +21,7 @@ if [[ "$@" != *"-lz"* ]]; then
[[ ! -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
+if [[ "$@" != *"-lmbedtls"* && "$@" != *"-lmbedcrypto"* && "$@" != *"-lmbedx509"* ]]; then
[ ! -e "lib/mbedtls-2.27.0/build" ] && cd lib/mbedtls-2.27.0 && mkdir build && cd build && CFLAGS="$CFLAGS $CFLAGS_MBEDTLS -DMBEDTLS_MD4_C=1 -w" cmake .. $CMAKE_DEFAULT_FLAGS -G "Unix Makefiles" -DENABLE_TESTING=OFF -DENABLE_PROGRAMS=OFF $SSL_CONFIGURE && CFLAGS="$CFLAGS $CFLAGS_MBEDTLS -DMBEDTLS_MD4_C=1 -w" $MAKE -j $JOBS && $MAKE install && cd ../../../
LDFLAGS="$LDFLAGS -lmbedtls -lmbedx509 -lmbedcrypto"
fi