From 531426135ae2a6ba919c1ae8240f09473dc0a656 Mon Sep 17 00:00:00 2001 From: Jonathan L Date: Fri, 11 Aug 2017 13:24:26 +0200 Subject: Toolchain/cygwin compat: gdb host requires included regex Signed-off-by: Jonathan L Signed-off-by: Abdoulaye Walsimou GAYE --- core/toolchain/addons/gdb/gdb_host/gdb_host.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3