summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJonathan L <jlynam@gmail.com>2017-08-11 13:24:26 +0200
committerAbdoulaye Walsimou GAYE <awg@embtoolkit.org>2017-08-11 13:24:26 +0200
commit531426135ae2a6ba919c1ae8240f09473dc0a656 (patch)
tree756803e7e0e31d8ee668bf257dbac226e6b33f6f /core
parentcd63d41bff81dd3916da382811ca2edef4d90dca (diff)
downloadembtoolkit-531426135ae2a6ba919c1ae8240f09473dc0a656.tar.gz
embtoolkit-531426135ae2a6ba919c1ae8240f09473dc0a656.tar.bz2
embtoolkit-531426135ae2a6ba919c1ae8240f09473dc0a656.tar.xz
Toolchain/cygwin compat: gdb host requires included regex
Signed-off-by: Jonathan L <jlynam@gmail.com> Signed-off-by: Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
Diffstat (limited to 'core')
-rw-r--r--core/toolchain/addons/gdb/gdb_host/gdb_host.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/toolchain/addons/gdb/gdb_host/gdb_host.mk b/core/toolchain/addons/gdb/gdb_host/gdb_host.mk
index 410a25d..1a1c530 100644
--- a/core/toolchain/addons/gdb/gdb_host/gdb_host.mk
+++ b/core/toolchain/addons/gdb/gdb_host/gdb_host.mk
@@ -1,6 +1,6 @@
################################################################################
# Embtoolkit
-# Copyright(C) 2009-2014 Abdoulaye Walsimou GAYE.
+# Copyright(C) 2009-2017 Abdoulaye Walsimou GAYE.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -50,3 +50,9 @@ GDB_HOST_PREFIX := $(embtk_tools)
define embtk_cleanup_gdb_host
rm -rf $(GDB_HOST_BUILD_DIR)
endef
+
+ifeq ($(embtk_buildhost_os_type),cygwin)
+# gdb requires some regex features not available on cygwin, such as
+# re_set_syntax(RE_SYNTAX_GREP);
+GDB_HOST_CFLAGS += -DUSE_INCLUDED_REGEX
+endif