MSYS2-packages/nettle/3.2-dlopen-test-msys-test.patch
2020-05-18 14:24:57 +03:00

16 lines
569 B
Diff

diff -aur nettle-3.2/testsuite/dlopen-test.c.orig nettle-3.2/testsuite/dlopen-test.c > ../3.2-dlopen-test-msys-test.patch
--- nettle-3.2/testsuite/dlopen-test.c.orig 2016-05-17 07:17:36.777183000 -0400
+++ nettle-3.2/testsuite/dlopen-test.c 2016-05-17 07:18:23.983817400 -0400
@@ -9,7 +9,11 @@
main (int argc UNUSED, char **argv UNUSED)
{
#if HAVE_LIBDL
+ #ifdef __MSYS__
+ void *handle = dlopen ("../msys-nettle-8.dll", RTLD_NOW);
+ #else
void *handle = dlopen ("../libnettle." SO_EXT, RTLD_NOW);
+ #endif
int (*get_version)(void);
if (!handle)
{