Files
netch/Other/shadowsocksr-libev/build.sh
Connection Refused b4b7bd9e62 [Other] Update build.sh
2021-09-26 21:18:38 +08:00

20 lines
606 B
Bash

#!/usr/bin/env bash
git submodule update --init || exit $?
cd libudns
./autogen.sh || exit $?
./configure || exit $?
make -j2 || exit $?
cd ..
./autogen.sh || exit $?
CFLAGS+="-fstack-protector" ./configure --disable-documentation --with-ev="${PWD}/../../build" || exit $?
sed -i "s/%I/%z/g" src/utils.h
sed -i "s/^const/extern const/g" src/tls.h
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 $?