From 5bef910bc64f7ed4eb574c3ef62ee2a8736f9c16 Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Sat, 26 Oct 2024 14:54:57 +0900 Subject: [PATCH] mingw-build: Place libwinpthread-1.dll in 'lib' directory Place `libwinpthread-1.dll` in `lib` directory so that it can be discovered using `clang -print-file-name=libwinpthread-1.dll` command line, as done by the Zephyr SDK LLVM build script. Signed-off-by: Stephanos Ioannidis --- mingw-build.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mingw-build.sh b/mingw-build.sh index 285a054..c9c44a6 100755 --- a/mingw-build.sh +++ b/mingw-build.sh @@ -103,6 +103,12 @@ build_mingw_toolchain() { make install popd + # Place libwinpthread-1.dll in 'lib' directory so that it can be discovered + # using 'clang -print-file-name=libwinpthread-1.dll'. + pushd ${prefix}/x86_64-w64-mingw32 + cp bin/libwinpthread-1.dll lib + popd + # Restore environment popd export PATH=${old_path}