]>
Commit | Line | Data |
---|---|---|
1 | ||
2 | #include <stdio.h> | |
3 | #include <stdlib.h> | |
4 | #include <dlfcn.h> | |
5 | ||
6 | #include "test.h" | |
7 | ||
8 | void bar() | |
9 | { | |
10 | void* handle = dlopen("libfoo.dylib", RTLD_LAZY); | |
11 | if ( handle == NULL ) { | |
12 | FAIL("rpath-dlopen-indirect: %s", dlerror()); | |
13 | exit(EXIT_SUCCESS); | |
14 | } | |
15 | ||
16 | void* pFoo = dlsym(handle, "foo"); | |
17 | if ( pFoo == NULL ) { | |
18 | FAIL("rpath-dlopen-indirect: %s", dlerror()); | |
19 | exit(EXIT_SUCCESS); | |
20 | } | |
21 | } | |
22 | ||
23 |