[Other] Update build.sh

This commit is contained in:
Connection Refused
2021-09-26 21:18:38 +08:00
parent 602634c2aa
commit b4b7bd9e62
3 changed files with 3 additions and 3 deletions

View File

@@ -3,5 +3,5 @@ mkdir -p "${PWD}/../../build"
./configure --prefix="${PWD}/../../build" || exit $?
make install -j2 || exit $?
make install -j2
exit $?

View File

@@ -16,5 +16,5 @@ sed -i "s/^const/extern const/g" src/http.h
make -j2 || exit $?
gcc $(find src/ -name "ss_local-*.o") $(find . -name "*.a" ! -name "*.dll.a") "${PWD}/../../build/lib/libev.a" -o ss-local -fstack-protector -static -lpcre -lssl -lcrypto -lws2_32 -s || exit $?
gcc $(find src/ -name "ss_local-*.o") $(find . -name "*.a" ! -name "*.dll.a") "${PWD}/../../build/lib/libev.a" -o ss-local -fstack-protector -static -lpcre -lssl -lcrypto -lws2_32 -s
exit $?

View File

@@ -6,5 +6,5 @@ git submodule update --init || exit $?
make -j2 || exit $?
gcc $(find src/ -name "obfs_local-*.o") $(find . -name "*.a" ! -name "*.dll.a") "${PWD}/../../build/lib/libev.a" -o simple-obfs -fstack-protector -static -lws2_32 -s || exit $?
gcc $(find src/ -name "obfs_local-*.o") $(find . -name "*.a" ! -name "*.dll.a") "${PWD}/../../build/lib/libev.a" -o simple-obfs -fstack-protector -static -lws2_32 -s
exit $?