From eaa1a157693e0cc90624ebb7353e997b3ff6f363 Mon Sep 17 00:00:00 2001 From: midipix Date: Dec 15 2016 18:21:36 +0000 Subject: project: clbuild-bat: properly handle dependency libraries. --- diff --git a/project/clbuild.sh b/project/clbuild.sh index d11c98a..e22610a 100755 --- a/project/clbuild.sh +++ b/project/clbuild.sh @@ -145,7 +145,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/^ -l\(.\+\)$/\1.lib/' \ + -e 's, -l\([^ ]\+\), %sysroot%/lib/lib\1.lib,g' \ -e 's@-nostdlib @/nodefaultlib @g' \ -e 's@-Wl,--subsystem=@/subsystem:@g' \ -e 's@-Wl,--entry -Wl,'"''"'@/entry:@g' \