This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 3/7] Platform agnostic dynamic loading code.


On Monday 29 August 2011 13:58:39, Sanjoy Das wrote:
> Hi Pedro!
> 
> > This isn't correct.  There are platforms where dlopen & friends are
> > in the C library, and don't need or have -ldl/libdl.
> 
> 
> Does it make more sense to have an AC_CHECK_HEADERS for dlfcn.h then?
> Of course, the AC_CHECK_LIB will have to stay, since we'd want to add
> -ldl if required.

Checking for dlfcn.h sounds like a good idea, but I think AC_SEARCH_LIBS
instead of AC_CHECK_LIB would be a bit more bullet proof, to still check
for being able to call/link dlopen.

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]