Fix compile error on some platform

Update build script.
This commit is contained in:
Tindy X
2020-02-24 00:19:50 +08:00
parent 24ef7f9e9e
commit 8ed0a620fd
2 changed files with 4 additions and 3 deletions

View File

@@ -8,11 +8,11 @@ apk add openssl-dev openssl-libs-static curl curl-dev curl-static nghttp2-static
git clone https://github.com/jbeder/yaml-cpp
cd yaml-cpp
cmake -DYAML_CPP_BUILD_TESTS=OFF -DYAML_CPP_BUILD_TOOLS=OFF . > /dev/null
make install -j4 > /dev/null
make install -j2 > /dev/null
cd ..
cmake .
make -j4
make -j2
g++ -o base/subconverter CMakeFiles/subconverter.dir/src/*.o -static -lpcre2-8 -levent -lyaml-cpp -lcurl -lnghttp2 -lssl -lcrypto -lz -lbz2 -ldl -lpthread -O3 -s
cd base