MINGW-packages/mingw-w64-julia/009-1.1.1-msys2-find-modname-in-julia_dl-before-default-paths.patch
Tim Stahlhut bfb79228f8 julia: Many package changes
Fix check() internal error by setting PATH.
Use julia local build of libgit2.
Add local macro _make_user_config.
Add local variables:
  _sourcedir=${_realname}-${pkgver}${_rc}
  _make_verbose
Change source download URL.
Change pkgdesc to no longer have package name in it.
Add comments to Header.
Also, rename/renumber patch files.
Add 016-1.1.1-msys2-Add-SRCCACHE-LIBGIT2_SRC_DIR-source-extracted-target.patch
Add package-testing.txt.
2020-12-09 20:43:26 +01:00

21 lines
686 B
Diff

--- julia-1.1.1/src/dlload.c 2019-05-16 12:10:48.000000000 +0800
+++ build-x86_64-w64-mingw32/src/dlload.c 2019-08-06 12:20:36.256669200 +0800
@@ -181,6 +181,17 @@
}
}
+#ifdef __MINGW32__
+ for(i=0; i < n_extensions; i++) {
+ const char *ext = extensions[i];
+ path[0] = '\0';
+ snprintf(path, PATHBUF, "%s/julia-%s/%s%s", jl_options.julia_bindir, JULIA_VERSION_STRING, modname, ext);
+ handle = jl_dlopen(path, flags);
+ if (handle)
+ goto done;
+ }
+#endif
+
// now fall back and look in default library paths, for all extensions
for(i=0; i < n_extensions; i++) {
const char *ext = extensions[i];