Skip to content
Snippets Groups Projects
Commit c00f4b17 authored by Niels Möller's avatar Niels Möller
Browse files

dlopen-test: Use libnettle.dylib on MacOS.

parent eb50135b
Branches
Tags bugzilla-3.2.1
No related merge requests found
2019-09-15 Niels Möller <nisse@lysator.liu.se>
* testsuite/dlopen-test.c (main): Use libnettle.dylib on MacOS.
2019-07-08 Niels Möller <nisse@lysator.liu.se> 2019-07-08 Niels Möller <nisse@lysator.liu.se>
* nettle-types.h (union nettle_block16): Mark w member as deprecated. * nettle-types.h (union nettle_block16): Mark w member as deprecated.
......
...@@ -5,11 +5,17 @@ ...@@ -5,11 +5,17 @@
#include <dlfcn.h> #include <dlfcn.h>
#endif #endif
#ifdef __APPLE__
#define SO_EXT "dylib"
#else
#define SO_EXT "so"
#endif
int int
main (int argc UNUSED, char **argv UNUSED) main (int argc UNUSED, char **argv UNUSED)
{ {
#if HAVE_LIBDL #if HAVE_LIBDL
void *handle = dlopen ("../libnettle.so", RTLD_NOW); void *handle = dlopen ("../libnettle." SO_EXT, RTLD_NOW);
int (*get_version)(void); int (*get_version)(void);
if (!handle) if (!handle)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment