[PATCH, gdbserver] Check for libdl before using it

Maxim Kuvyrkov maxim@codesourcery.com
Tue Feb 23 19:15:00 GMT 2010


The following patch fixes build of gdbserver on platforms that do not 
support dynamic libraries, e.g., m68k-uclinux.

At the moment the build of gdbserver/thread-db.c fails for m68k-uclinux 
and, possibly, other similar architectures due to thread-db.c assuming 
that there is dlfcn.h header / libdl library installed.

This patch adds a configure check for libdl and, if it is not present, 
falls back to linking in static libthread_db.a.

Daniel J. approved this patch off-line, so I will commit it shortly.

Regards,

-- 
Maxim Kuvyrkov
CodeSourcery
maxim@codesourcery.com
(650) 331-3385 x724
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fsf-gdbserver-libdl.ChangeLog
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20100223/40fbe687/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fsf-gdbserver-libdl.patch
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20100223/40fbe687/attachment-0001.ksh>


More information about the Gdb-patches mailing list