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.
This commit is contained in:
Jan Lindemann 2007-08-25 11:23:05 +00:00 committed by Jan Lindemann
commit 4d054b0018

View file

@ -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