This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch] Fix build if using --with-system-readline
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Doug Evans <dje at google dot com>
- Date: Sun, 29 Nov 2009 21:57:07 +0100
- Subject: [patch] Fix build if using --with-system-readline
Hi,
./configure --enable-targets=all --with-system-readline; make
->
gcc -g -O2 -I. -I. -I./common -I./config -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode -I../bfd -I./../bfd -I./../include -I../libdecnumber -I./../libdecnumber -I./gnulib -Ignulib -DMI_OUT=1 -DTUI=1 -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-unused -Wunused-value -Wno-switch -Wno-char-subscripts -Werror -c -o frv-tdep.o -MT frv-tdep.o -MMD -MP -MF .deps/frv-tdep.Tpo frv-tdep.c
frv-tdep.c:35:60: error: opcodes/frv-desc.h: No such file or directory
(it is not `make -j' race)
because with --with-system-readline there is no:
-I./../readline/..
OK to check-in?
Thanks,
Jan
gdb/
2009-11-29 Jan Kratochvil <jan.kratochvil@redhat.com>
Fix build if using --with-system-readline.
* Makefile.in (OPCODES_CFLAGS): Add `-I$(OPCODES_DIR)/..'.
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -301,7 +301,7 @@ OPCODES = $(OPCODES_DIR)/libopcodes.a
# Where are the other opcode tables which only have header file
# versions?
OP_INCLUDE = $(INCLUDE_DIR)/opcode
-OPCODES_CFLAGS = -I$(OP_INCLUDE)
+OPCODES_CFLAGS = -I$(OP_INCLUDE) -I$(OPCODES_DIR)/..
# The simulator is usually nonexistent; targets that include one
# should set this to list all the .o or .a files to be linked in.