From d69a6beaa0c8b6fbcb1df14a4136c98ee36c55bd Mon Sep 17 00:00:00 2001 From: midipix Date: Dec 18 2016 14:33:41 +0000 Subject: project: clbuild-bat: added -static support. --- 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' \