[PATCH] gdb/configure: Replace hardcoded -ldl with check based on dlfcn.h availability
Pavel Chupin
pavel.v.chupin@gmail.com
Thu May 16 06:47:00 GMT 2013
On Tue, May 14, 2013 at 11:23 PM, Mark Kettenis <mark.kettenis@xs4all.nl> wrote:
>> From: Tom Tromey <tromey@redhat.com>
>> Date: Tue, 14 May 2013 13:00:10 -0600
>>
>> 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.
>
> That's indeed what the autoconf manual suggests.
Please see attached.
ChangeLog entry didn't change:
2013-05-16 Pavel Chupin <pavel.v.chupin@intel.com>
Replace hardcoded -ldl with check for availability
* acinclude.m4: Add check for dlopen in libdl.
* configure.ac: Ditto.
* configure: Regenerate.
Is it OK for trunk?
--
Pavel Chupin
Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Replace-hardcoded-ldl-with-check-for-availability-2.patch
Type: application/octet-stream
Size: 8375 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20130516/53271414/attachment.obj>
More information about the Gdb-patches
mailing list