From 8b1c30475c340521d250276ac395ed72f8e86f7d Mon Sep 17 00:00:00 2001 From: Steffen Pohle Date: Sun, 8 Sep 2024 11:48:34 +0200 Subject: [PATCH] fixed windows build, somehow not all DLLs are being copied --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 9f22315..fb4cabc 100644 --- a/Makefile +++ b/Makefile @@ -90,6 +90,8 @@ buildwindows: clean ./copydlls.sh ./copydlls.sh ./copyshare.sh + cp /usr/lib/gcc/x86_64-w64-mingw32/13-win32/*.dll TestModbus-Client-$(VERSION)/ + for i in `ldd TestModbus-Client.exe |grep -vi "/c/windows" | cut -d" " -f3`; do cp $$i TestModbus-Client-$(VERSION)/; done mv *.dll TestModbus-Client-$(VERSION)/ mv share TestModbus-Client-$(VERSION)/ zip -r TestModbus-Client-$(VERSION)-win.zip TestModbus-Client-$(VERSION)/