Skip to content

Commit 5b6baaf

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 fb3b606 commit 5b6baaf

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
@@ -979,6 +979,9 @@ build_install() {
979979
find "${PKG_PREFIX}/bin" -name '*.dll' -execdir "${HOST}-strip" --strip-unneeded -- {} \;
980980
find "${PKG_PREFIX}/lib" -name '*.a' -execdir rm -f -- {} \;
981981
find "${PKG_PREFIX}/lib" -name '*.exp' -execdir rm -f -- {} \;
982+
983+
# Fix import lib paths to use MSVC-style instead of MinGW ones (see 'genlib' target)
984+
find "${PKG_PREFIX}/lib/cmake" -name '*.cmake' -execdir sed -i -E 's@[.]dll[.]a\b@.lib@g' {} \;
982985
;;
983986
esac
984987

0 commit comments

Comments
 (0)