summaryrefslogtreecommitdiffhomepage
path: root/contrib/npclient/COMPILE.TXT
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-12-26 14:29:01 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-12-26 14:29:49 +0100
commitc8d8702431e5b4fb275e9952d59efac69ca00960 (patch)
tree380fa146c42915fee310df15cd0a4ed9ebe66d47 /contrib/npclient/COMPILE.TXT
parent424de5b9c561b8c5784b5985b82d26d28b747e53 (diff)
contrib/npclient: add compile instructions
Diffstat (limited to 'contrib/npclient/COMPILE.TXT')
-rw-r--r--contrib/npclient/COMPILE.TXT7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/npclient/COMPILE.TXT b/contrib/npclient/COMPILE.TXT
new file mode 100644
index 00000000..cc562dd4
--- /dev/null
+++ b/contrib/npclient/COMPILE.TXT
@@ -0,0 +1,7 @@
+# This makes small binaries:
+
+CC=clang
+CFLAGS='-Wall -Wextra -Wpedantic -Os -s -ffunction-sections -fdata-sections -Wl,--kill-at,--nxcompat,--dynamicbase,--as-needed,--gc-sections,--strip-all'
+
+PATH=/mingw32/bin:"$PATH" sh -c "$CC $CFLAGS -mdll -o NPClient.dll npclient.c" &&
+PATH=/mingw64/bin:"$PATH" sh -c "$CC $CFLAGS -mdll -o NPClient64.dll npclient.c"