mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
20 lines
606 B
Bash
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 $? |