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]

[PATCH, gdbserver] Check for libdl before using it


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

Attachment: fsf-gdbserver-libdl.ChangeLog
Description: Text document

Attachment: fsf-gdbserver-libdl.patch
Description: Text document


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