]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - library-bundler
bundle: use ntldd on msys2 instead of ldd to enable 32bit build on 64bit os
[xonotic/netradiant.git] / library-bundler
index b776c53297cea51163d358cc5511975b7287ceb3..ca95ae00863d86b2e42141b310979fee8a46bb24 100644 (file)
@@ -8,9 +8,10 @@ case "${system_name}" in
        'windows')
                bundle_dir="$(cygpath --unix "${bundle_dir}")"
                exe_file="$(cygpath --unix "${exe_file}")"
-               ldd "${exe_file}" \
-               | egrep -i '\.dll => /mingw64/' \
+               ntldd --recursive "${exe_file}" \
+               | egrep -i '\.dll => [A-Z]:\\msys64\\' \
                | sed -e 's/ (0x[0-9a-f]*)$//;s/^.* => //' \
+               | cygpath --unix --file - \
                | while read dll_file
                do
                        dll_basename="$(basename "${dll_file}")"