summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-12-17 20:02:00 -0500
committermidipix <writeonce@midipix.org>2016-12-18 09:26:21 -0500
commita4d31b350a5a6425162ce4f60869807028738bab (patch)
tree989aaa52d7bc4f41f4aefbdff1fcdd598bed0902
parentf8831f54298d3a78d24fc614ac70793ac85a6a94 (diff)
downloadpemagine-a4d31b350a5a6425162ce4f60869807028738bab.tar.bz2
pemagine-a4d31b350a5a6425162ce4f60869807028738bab.tar.xz
project: clbuild-bat: added -static support.
-rwxr-xr-xproject/clbuild.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/project/clbuild.sh b/project/clbuild.sh
index 12458a1..5d1c6b3 100755
--- a/project/clbuild.sh
+++ b/project/clbuild.sh
@@ -178,6 +178,7 @@ make LDFLAGS_IMPLIB= LDFLAGS_SONAME= shared-lib \
-e 's@'"$mb_cc"' -shared @link /dll /nologo @' \
-e 's@-o @/out:@g' \
-e 's@ -L@ /libpath:@g' \
+ -e 's,-static -l\([^ ]\+\), %sysroot%/lib/lib\1.a,g' \
-e 's, -l\([^ ]\+\), %sysroot%/lib/lib\1.lib,g' \
-e 's@-nostdlib @/nodefaultlib @g' \
-e 's@-Wl,--subsystem=@/subsystem:@g' \