summaryrefslogtreecommitdiffhomepage
path: root/project
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-12-17 20:02:00 -0500
committermidipix <writeonce@midipix.org>2016-12-18 09:33:41 -0500
commitd69a6beaa0c8b6fbcb1df14a4136c98ee36c55bd (patch)
tree6c860e5e77bf0d05124dc67f9e4d411b8b0fc0fa /project
parentb8b26522ad32a7d5d6e36cfa438223b1207e390f (diff)
downloadntapi-d69a6beaa0c8b6fbcb1df14a4136c98ee36c55bd.tar.bz2
ntapi-d69a6beaa0c8b6fbcb1df14a4136c98ee36c55bd.tar.xz
project: clbuild-bat: added -static support.
Diffstat (limited to 'project')
-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' \