summaryrefslogtreecommitdiffhomepage
path: root/contrib/npclient/COMPILE.TXT
blob: cc562dd49d0f3b2459b312acb8072c1fb1520464 (plain)
1
2
3
4
5
6
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"