Skip to content

Commit 7f9abc7

Browse files
committed
external_deps: fix import lib paths for MSVC
In the cmake config files in lib/cmake, substitute .dll.a -> .lib when targeting MSVC.
1 parent 758f196 commit 7f9abc7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

external_deps/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -972,6 +972,9 @@ build_install() {
972972
find "${PKG_PREFIX}/bin" -name '*.dll' -execdir "${HOST}-strip" --strip-unneeded -- {} \;
973973
find "${PKG_PREFIX}/lib" -name '*.a' -execdir rm -f -- {} \;
974974
find "${PKG_PREFIX}/lib" -name '*.exp' -execdir rm -f -- {} \;
975+
976+
# Fix import lib paths to use MSVC-style instead of MinGW ones (see 'genlib' target)
977+
find "${PKG_PREFIX}/lib/cmake" -name '*.cmake' -execdir sed -i -E 's@[.]dll[.]a\b@.lib@g' {} \;
975978
;;
976979
esac
977980

0 commit comments

Comments
 (0)