Update build scripts

This commit is contained in:
Tindy X
2019-12-26 20:47:08 +08:00
parent b89a8b1f7c
commit 0992be1e2a
6 changed files with 31 additions and 200 deletions

View File

@@ -3,7 +3,7 @@ mkdir obj
set -xe
apk add gcc g++ build-base linux-headers cmake make autoconf automake libtool
apk add libressl-dev zlib-dev rapidjson-dev libevent-dev libevent-static zlib-static pcre-dev
apk add libressl-dev zlib-dev rapidjson-dev libevent-dev libevent-static zlib-static pcre-dev bzip2-static
git clone https://github.com/curl/curl
cd curl
@@ -18,11 +18,6 @@ cmake . > /dev/null
make install -j4 > /dev/null
cd ..
git clone git://sourceware.org/git/bzip2.git
cd bzip2
make install -j4 > /dev/null
cd ..
cmake .
make -j4
g++ -o base/subconverter CMakeFiles/subconverter.dir/src/*.o -static -lpcrecpp -lpcre -levent -lyaml-cpp -lcurl -lssl -lcrypto -lz -lbz2 -ldl -lpthread -O3 -s