From 4d054b00189008193eb00d78376e645b4559861c Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Sat, 25 Aug 2007 11:23:05 +0000 Subject: [PATCH] defs.mk: Add CATCH_ONLY_YERROR switch variable Add evalutation of CATCH_ONLY_YERROR: Ff this macro is defined, the yerror_catch_xxx macros only catch YError, all others will lead to program abort with a core dump (hopefully) pointing to the place where it was thrown. --- make/defs.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/make/defs.mk b/make/defs.mk index a3128472..eea3ad48 100644 --- a/make/defs.mk +++ b/make/defs.mk @@ -73,6 +73,11 @@ else endif endif +ifeq ($(CATCH_ONLY_YERROR),true) +CFLAGS += -DCATCH_ONLY_YERROR +CPPFLAGS += -DCATCH_ONLY_YERROR +endif + ifneq ($(shell echo $(OS) | cut -d: -f1),suse-9) SYSCONFIG_PREFIX ?= /etc SYSCONFIG_FILE ?= /etc/rc.config