From d69a6beaa0c8b6fbcb1df14a4136c98ee36c55bd Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 17 Dec 2016 20:02:00 -0500 Subject: project: clbuild-bat: added -static support. --- project/clbuild.sh | 1 + 1 file changed, 1 insertion(+) 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' \ -- cgit v1.2.3