]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
Added copy of required DLL for win32 builds
authorz411 <z411@omaera.org>
Fri, 25 Feb 2022 23:25:12 +0000 (20:25 -0300)
committerz411 <z411@omaera.org>
Fri, 25 Feb 2022 23:25:12 +0000 (20:25 -0300)
misc/buildsrc/dlls.sh

index 6baf67d00a24e4b1b76d9e21b97d67330988fb82..bec5df23743ef4a37c1fefd9b8953fe5506d191f 100755 (executable)
@@ -291,6 +291,11 @@ install () {
        cp -v "$pkg_dir/bin/libjpeg-62.dll" "$out_dir/libjpeg.dll"
        cp -v "$pkg_dir/bin/libcurl.dll" "$out_dir/libcurl-4.dll"
 
+       # Required for win32 builds
+       if [ "$ARCH" = "i686" ]; then
+               cp -v "/usr/lib/gcc/i686-w64-mingw32/10-win32/libgcc_s_dw2-1.dll" "$out_dir"
+       fi
+
        cd "$out_dir"
        ${CHOST}-strip -s *.dll
 }