summaryrefslogtreecommitdiff
path: root/core/toolchain
diff options
context:
space:
mode:
Diffstat (limited to 'core/toolchain')
-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))