summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2019-11-05 16:23:02 +0000
committerRoy Marples <roy@marples.name>2019-11-05 16:23:02 +0000
commitf8d107d75d9b811f237266665685c5942a848ef8 (patch)
tree8a7ebaa914ef0af9e1113baff5321cdfe8a51870 /configure
parenta738a4c48d3c9516fb9d9c0bd900f3206256d5be (diff)
downloaddhcpcd-f8d107d75d9b811f237266665685c5942a848ef8.tar.xz
build: Improve detection of dlopen(3) in libdl
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure b/configure
index 29ecaa76..9efa1638 100755
--- a/configure
+++ b/configure
@@ -1506,7 +1506,10 @@ if [ "$DEV" = yes ]; then
#include <dlfcn.h>
#include <stdlib.h>
int main(void) {
- dlopen(NULL, 0);
+ void *h = dlopen("/foo/bar", 0);
+ void (*s)(char *) = dlsym(h, "deadbeef");
+ s(dlerror());
+ dlclose(h);
return 0;
}
EOF