This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
NAT_FILE set incorrectly in gdb/Makefile
- From: Eli Zaretskii <eliz at gnu dot org>
- To: gdb-patches at sourceware dot org
- Date: Sun, 19 Apr 2009 22:00:07 +0300
- Subject: NAT_FILE set incorrectly in gdb/Makefile
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
"make TAGS" curses thusly:
Making TAGS
.././gdb/config/i386/config/i386/nm-linux64.h: No such file or directory
This is on GNU/Linux, obviously, but I see the equivalent error
message in the DJGPP build.
The problem is this line from gdb/Makefile:
NAT_FILE= config/i386/config/i386/nm-linux64.h
which is obviously incorrect. It looks like the culprit is this line
from configure.ac:
sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
which seems to run twice, perhaps once by configure, the other time by
config.status. But that's a guess; the truth is I have no idea why
config/i386 gets prepended twice. Does anyone see the villain?