[PATCH] gdb/configure: Replace hardcoded -ldl with check based on dlfcn.h availability
Tom Tromey
tromey@redhat.com
Tue May 14 19:00:00 GMT 2013
Mark> The fix isn't quite right. OpenBSD for example has <dlfcn.h> but no
Mark> libdl; dlopen(3) and friends live in libc.
Pavel> Hi Mark,
Pavel> Thanks for your comments. Please see new patch attached.
Pavel> - LIBS="-ldl $LIBS"
Pavel> + AC_CHECK_LIB(dl, dlopen)
I think it is probably better to use AC_SEARCH_LIBS.
Tom
More information about the Gdb-patches
mailing list