From ab88c17356ad473b9d5b6202f6109963bcb5569b Mon Sep 17 00:00:00 2001 From: Elliot Saba Date: Fri, 13 Nov 2020 11:01:09 -0800 Subject: [PATCH] [MbedTLS]: Fix lack of `+x` permissions on DLLs (#2105) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Mosè Giordano --- M/MbedTLS/build_tarballs.jl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/M/MbedTLS/build_tarballs.jl b/M/MbedTLS/build_tarballs.jl index 71633c409d8..6964add5a04 100644 --- a/M/MbedTLS/build_tarballs.jl +++ b/M/MbedTLS/build_tarballs.jl @@ -32,6 +32,14 @@ cmake -DCMAKE_INSTALL_PREFIX=${prefix} \ -DUSE_SHARED_MBEDTLS_LIBRARY=On \ .. make -j${nproc} && make install + +if [[ "${target}" == *mingw* ]]; then + # For some reason, the build system doesn't set the `.dll` files as + # executable, which prevents them from being loaded. Also, we need + # to explicitly use `${prefix}/lib` here because the build system + # is a simple one, and blindly uses `/lib`, even on Windows. + chmod +x ${prefix}/lib/*.dll +fi """ # These are the platforms we will build for by default, unless further