aboutsummaryrefslogtreecommitdiff
path: root/gdb/Makefile.in
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-03-23 21:31:29 +0000
committerMike Frysinger <vapier@gentoo.org>2010-03-23 21:31:29 +0000
commit64e3cf3d4f121e456a09c3998c4aa6d739e61f8a (patch)
tree2e826b0746c65b63af09d1be66aea0864a6a4bf0 /gdb/Makefile.in
parent6c93b22ce4b4f83c550a489fd547de3f1468e1e1 (diff)
downloadgdb-64e3cf3d4f121e456a09c3998c4aa6d739e61f8a.zip
gdb-64e3cf3d4f121e456a09c3998c4aa6d739e61f8a.tar.gz
gdb-64e3cf3d4f121e456a09c3998c4aa6d739e61f8a.tar.bz2
gdb: fix building with system readline
Building gdb with --enable-targets=all and --with-system-readline hits a failure in a few targets all related to the inclusion of some opcodes headers. The usage of the bundled readline results in an -I to the top srcdir, but if that isn't used, then there is no such -I path. A few gdb targets use this implicitly to include opcodes/ source header files. So make sure there is always an explicit -I path to the opcodes/ directory.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r--gdb/Makefile.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 9a02ba1..72b546d 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -309,7 +309,8 @@ 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)
+# Some source files like to use #include "opcodes/file.h"
+OPCODES_CFLAGS = -I$(OP_INCLUDE) -I$(OPCODES_SRC)/..
# The simulator is usually nonexistent; targets that include one
# should set this to list all the .o or .a files to be linked in.