From c8d8702431e5b4fb275e9952d59efac69ca00960 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 26 Dec 2017 14:29:01 +0100 Subject: contrib/npclient: add compile instructions --- contrib/npclient/COMPILE.TXT | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 contrib/npclient/COMPILE.TXT (limited to 'contrib/npclient/COMPILE.TXT') 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" -- cgit v1.2.3