This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Tweaks needed to build head for non-shared library targets.
- From: Paul Schlie <schlie at comcast dot net>
- To: "insight at sources dot redhat dot com" <insight at sources dot redhat dot com>
- Date: Sun, 15 May 2005 13:59:23 -0400
- Subject: Tweaks needed to build head for non-shared library targets.
As there's been a few changes to GDB, BFD, etc. regarding shared library
headers/use, the following files/lines need have basename => lbasename
to compile gdbtk without a "_basename_cannot_be_used_without_a_prototype"
link error for compatibility with targets that may not support basename():
/Applications/avr/avr-src/gdb/gdbtk/generic/gdbtk-bp.c:538:
xasprintf (&buf, "%s:%d", basename (Tcl_GetStringFromObj (objv[1],
NULL)),
/Applications/avr/avr-src/gdb/gdbtk/generic/gdbtk-cmds.c:1148:
|| !strcmp (psymtab->filename, basename (psymtab->filename)))
/Applications/avr/avr-src/gdb/gdbtk/generic/gdbtk-cmds.c:1150:
files[numfiles++] = basename (psymtab->filename);
/Applications/avr/avr-src/gdb/gdbtk/generic/gdbtk-cmds.c:1165:
|| !strcmp (symtab->filename, basename (symtab->filename)))
/Applications/avr/avr-src/gdb/gdbtk/generic/gdbtk-cmds.c:1167:
files[numfiles++] = basename (symtab->filename);
(sorry, I know a patch would have been better)