From 8e836eab296f88dd1061056ee67eb7c4051811d1 Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Sat, 27 Dec 2014 23:07:35 +0100 Subject: Toolchain: gdb: explicitly set CC_FOR_BUILD Signed-off-by: Abdoulaye Walsimou Gaye --- core/toolchain/addons/gdb/common.mk | 1 + core/toolchain/addons/gdb/gdb/gdb.mk | 2 ++ core/toolchain/addons/gdb/gdbserver/gdbserver.mk | 2 ++ 3 files changed, 5 insertions(+) (limited to 'core/toolchain') 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)) -- cgit v1.2.3