From: Roy Marples Date: Tue, 5 Nov 2019 16:23:02 +0000 (+0000) Subject: build: Improve detection of dlopen(3) in libdl X-Git-Tag: v8.1.2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8d107d75d9b811f237266665685c5942a848ef8;p=thirdparty%2Fdhcpcd.git build: Improve detection of dlopen(3) in libdl --- diff --git a/configure b/configure index 29ecaa76..9efa1638 100755 --- a/configure +++ b/configure @@ -1506,7 +1506,10 @@ if [ "$DEV" = yes ]; then #include #include 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