diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2022-12-04 15:03:08 -0500 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2022-12-04 15:03:08 -0500 |
commit | 85b453cec99b80a5bea4f0777d19676486ac15e7 (patch) | |
tree | 997e9b599f0652f3f41bac462c3a4ca0bffeb2c1 | |
parent | ba7ffadd3cb4bd3a0aaa9fc1b9e33e3702eb57df (diff) | |
download | lite-xl-plugin-manager-85b453cec99b80a5bea4f0777d19676486ac15e7.tar.gz lite-xl-plugin-manager-85b453cec99b80a5bea4f0777d19676486ac15e7.zip |
Got rid of makefile for zlib. Unecessary.
-rwxr-xr-x | build.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,6 +1,7 @@ #!/usr/bin/env bash : ${CC=gcc} +: ${AR=ar} : ${MAKE=make} : ${BIN=lpm} : ${JOBS=4} @@ -16,8 +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 && ../configure --static --prefix=`pwd`/../../prefix && $MAKE -j $JOBS && $MAKE install && cd ../../../ - [[ ! -e "lib/zlib/build" && $OSTYPE == 'msys'* ]] && cd lib/zlib && mkdir build && $MAKE -f win32/Makefile.gcc -j $JOBS && cp *.a ../prefix/lib && cp *.h ../prefix/include && cd ../../ + [[ ! -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 ../../../ LDFLAGS="$LDFLAGS -l:libz.a" fi if [[ "$@" != *"-lmbedtls"* && "$@" != *"-lmbedcrypto"* ]]; then |