summaryrefslogtreecommitdiffstats
path: root/rules/gdb.make
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2004-10-18 11:27:13 +0000
committerRobert Schwebel <r.schwebel@pengutronix.de>2004-10-18 11:27:13 +0000
commit839282ecdfff3d7bf839d2251eea59d2d869aaac (patch)
treeb9a2ea9814e60fd3703939dcaf164d2811b6bece /rules/gdb.make
parent05b4f999e3d0efc746643f4d88a7339e41348beb (diff)
downloadptxdist-839282ecdfff3d7bf839d2251eea59d2d869aaac.tar.gz
ptxdist-839282ecdfff3d7bf839d2251eea59d2d869aaac.tar.xz
merge with nativegcc branch
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.7-trunk@1885 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/gdb.make')
-rw-r--r--rules/gdb.make16
1 files changed, 7 insertions, 9 deletions
diff --git a/rules/gdb.make b/rules/gdb.make
index 01a7dcb22..3a452a771 100644
--- a/rules/gdb.make
+++ b/rules/gdb.make
@@ -78,9 +78,8 @@ gdb_prepare: $(STATEDIR)/gdb.prepare
#
# dependencies
#
-gdb_prepare_deps = \
- $(STATEDIR)/virtual-xchain.install \
- $(STATEDIR)/gdb.extract
+gdb_prepare_deps = $(STATEDIR)/virtual-xchain.install
+gdb_prepare_deps += $(STATEDIR)/gdb.extract
ifdef PTXCONF_GDB_TERMCAP
gdb_prepare_deps += $(STATEDIR)/termcap.install
@@ -101,10 +100,9 @@ endif
#
# autoconf
#
-GDB_AUTOCONF = --prefix=/usr
-GDB_AUTOCONF += --build=$(GNU_HOST)
-GDB_AUTOCONF += --host=$(PTXCONF_GNU_TARGET)
-GDB_AUTOCONF += --target=$(PTXCONF_GNU_TARGET)
+GDB_AUTOCONF = $(CROSS_AUTOCONF)
+GDB_AUTOCONF += --target=$(call remove_quotes,$(PTXCONF_GNU_TARGET))
+GDB_AUTOCONF += --prefix=/usr
$(STATEDIR)/gdb.prepare: $(gdb_prepare_deps)
@$(call targetinfo, $@)
@@ -119,9 +117,9 @@ $(STATEDIR)/gdb.prepare: $(gdb_prepare_deps)
# prepare libiberty first with the cross options to avoid that
# it runs the configure stages automatically and with the wrong
# options (host) during the compile stage
- #
+
mkdir -p $(GDB_BUILDDIR)/libiberty
- ln -s $(GDB_BUILDDIR)/libiberty $(GDB_BUILDDIR)/build-i686-host-linux-gnu/libiberty
+ ln -s $(GDB_BUILDDIR)/libiberty $(GDB_BUILDDIR)/build-$(GNU_HOST)/libiberty
cd $(GDB_BUILDDIR)/libiberty && \
$(GDB_PATH) $(GDB_ENV) \
$(GDB_DIR)/libiberty/configure $(GDB_AUTOCONF)