summaryrefslogtreecommitdiff
path: root/bouncer/build_static.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bouncer/build_static.sh')
-rwxr-xr-xbouncer/build_static.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/bouncer/build_static.sh b/bouncer/build_static.sh
new file mode 100755
index 0000000..6ed9183
--- /dev/null
+++ b/bouncer/build_static.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+mkdir -p binary
+
+NETCODE="socketcommon.cpp client.cpp mobileclient.cpp server.cpp ircserver.cpp netcore.cpp"
+SOURCES="$NETCODE main.cpp window.cpp dns.cpp"
+FLAGS="-static -static-libgcc -static-libstdc++ -std=c++11 -pthread"
+
+g++ -o binary/nb4_static $FLAGS $SOURCES
+