diff options
author | marcel <marcel@FreeBSD.org> | 2004-12-05 04:08:22 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2004-12-05 04:08:22 +0000 |
commit | 97caf4c3a0d81978418c77fc27d1fad10172c882 (patch) | |
tree | 6cce68bdd0f82d4e14e3c4df81fb5a0a67a17a9f /gnu | |
parent | c3df9439cf95707e0fcee82a041a8a8b95e49852 (diff) | |
download | FreeBSD-src-97caf4c3a0d81978418c77fc27d1fad10172c882.zip FreeBSD-src-97caf4c3a0d81978418c77fc27d1fad10172c882.tar.gz |
Fix previous commit. GDB_CROSS_DEBUGGER needs to be defined for all
subdirectories.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/gdb/Makefile.inc | 4 | ||||
-rw-r--r-- | gnu/usr.bin/gdb/libgdb/Makefile | 10 |
2 files changed, 5 insertions, 9 deletions
diff --git a/gnu/usr.bin/gdb/Makefile.inc b/gnu/usr.bin/gdb/Makefile.inc index 2f5a448..32a8622 100644 --- a/gnu/usr.bin/gdb/Makefile.inc +++ b/gnu/usr.bin/gdb/Makefile.inc @@ -19,6 +19,10 @@ OBJ_GDB= ${OBJ_ROOT}/gdb TARGET_ARCH?= ${MACHINE_ARCH} TARGET_SUBDIR= ${BMAKE_GDB}/arch/${TARGET_ARCH} +.if ${TARGET_ARCH} != ${MACHINE_ARCH} +GDB_CROSS_DEBUGGER= +.endif + .if !defined(INFO) .PATH: ${CNTRB_GDB}/gdb ${CNTRB_GDB}/gdb/cli ${CNTRB_GDB}/gdb/mi \ diff --git a/gnu/usr.bin/gdb/libgdb/Makefile b/gnu/usr.bin/gdb/libgdb/Makefile index 25b7bac..5a733af 100644 --- a/gnu/usr.bin/gdb/libgdb/Makefile +++ b/gnu/usr.bin/gdb/libgdb/Makefile @@ -1,9 +1,6 @@ # $FreeBSD$ TARGET_ARCH?= ${MACHINE_ARCH} -.if ${TARGET_ARCH} != ${MACHINE_ARCH} -GDB_CROSS_DEBUGGER= -.endif LIB= gdb INTERNALLIB= @@ -52,12 +49,7 @@ SRCS= annotate.c arch-utils.c auxv.c ax-gdb.c ax-general.c \ valarith.c valops.c valprint.c values.c varobj.c \ wrapper.c ${LIBSRCS} -TARGET_ARCH?= ${MACHINE_ARCH} -.if ${TARGET_ARCH} != ${MACHINE_ARCH} -GDB_CROSS_DEBUGGER= -.endif - -.if !defined(GDB_CROSS_DEBUGGER) +.if ${TARGET_ARCH} == ${MACHINE_ARCH} _fork_child= fork-child.c _infptrace= infptrace.c _inftarg= inftarg.c |