summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-12-27 23:07:35 +0100
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-12-27 23:08:13 +0100
commit8e836eab296f88dd1061056ee67eb7c4051811d1 (patch)
tree465610cb779c1d6b3cb816c29a2bc4feec60b100
parentcfca3a0ab14d1cd541a11f34f3f32321a56f728f (diff)
downloadembtoolkit-8e836eab296f88dd1061056ee67eb7c4051811d1.tar.gz
embtoolkit-8e836eab296f88dd1061056ee67eb7c4051811d1.tar.bz2
embtoolkit-8e836eab296f88dd1061056ee67eb7c4051811d1.tar.xz
Toolchain: gdb: explicitly set CC_FOR_BUILD
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
-rw-r--r--core/toolchain/addons/gdb/common.mk1
-rw-r--r--core/toolchain/addons/gdb/gdb/gdb.mk2
-rw-r--r--core/toolchain/addons/gdb/gdbserver/gdbserver.mk2
3 files changed, 5 insertions, 0 deletions
diff --git a/core/toolchain/addons/gdb/common.mk b/core/toolchain/addons/gdb/common.mk
index e3d0543..fa78033 100644
--- a/core/toolchain/addons/gdb/common.mk
+++ b/core/toolchain/addons/gdb/common.mk
@@ -25,6 +25,7 @@
GDBCOMMON_DEPS := ncurses_install
+GDBCOMMON_CONFIGURE_ENV := CC_FOR_BUILD="$(HOSTCC)"
GDBCOMMON_CONFIGURE_OPTS := --disable-werror
GDBCOMMON_CONFIGURE_OPTS += --disable-sim
GDBCOMMON_CONFIGURE_OPTS += --disable-nls
diff --git a/core/toolchain/addons/gdb/gdb/gdb.mk b/core/toolchain/addons/gdb/gdb/gdb.mk
index 0618669..c99fb3b 100644
--- a/core/toolchain/addons/gdb/gdb/gdb.mk
+++ b/core/toolchain/addons/gdb/gdb/gdb.mk
@@ -33,6 +33,8 @@ GDB_BUILD_DIR := $(embtk_pkgb)/gdb-$(GDB_VERSION)-build
GDB_DEPS := $(GDBCOMMON_DEPS)
GDB_CONFIGURE_OPTS := $(GDBCOMMON_CONFIGURE_OPTS)
+GDB_CONFIGURE_ENV := $(GDBCOMMON_CONFIGURE_ENV)
+
GDB_BINS := $(GDBCOMMON_BINS)
GDB_BINS += $(if $(CONFIG_EMBTK_HAVE_GDBSERVER),,gdbserver)
GDB_INCLUDES := $(if $(CONFIG_EMBTK_HAVE_GDBSERVER),,$(GDBCOMMON_INCLUDES))
diff --git a/core/toolchain/addons/gdb/gdbserver/gdbserver.mk b/core/toolchain/addons/gdb/gdbserver/gdbserver.mk
index 7b825dc..eba2743 100644
--- a/core/toolchain/addons/gdb/gdbserver/gdbserver.mk
+++ b/core/toolchain/addons/gdb/gdbserver/gdbserver.mk
@@ -33,6 +33,8 @@ GDBSERVER_BUILD_DIR := $(embtk_pkgb)/gdbserver-$(GDBSERVER_VERSION)-build
GDBSERVER_DEPS := $(GDBCOMMON_DEPS)
GDBSERVER_CONFIGURE_OPTS := $(GDBCOMMON_CONFIGURE_OPTS)
+GDBSERVER_CONFIGURE_ENV := $(GDBCOMMON_CONFIGURE_ENV)
+
GDBSERVER_BINS := $(if $(CONFIG_EMBTK_HAVE_GDB),,gdbserver)
GDBSERVER_INCLUDES := $(if $(CONFIG_EMBTK_HAVE_GDB),,$(GDBCOMMON_INCLUDES))
GDBSERVER_LIBS := $(if $(CONFIG_EMBTK_HAVE_GDB),,$(GDBCOMMON_LIBS))