diff --git a/Jamrules b/Jamrules index b17c9723dc..d821bf2a9a 100644 --- a/Jamrules +++ b/Jamrules @@ -141,6 +141,9 @@ KERNEL_CCFLAGS += -DBOCHS_DEBUG_HACK=$(BOCHS_DEBUG_HACK) ; KERNEL_C++FLAGS ?= -Wall -Wno-multichar -Wmissing-prototypes -finline -nostdinc ; KERNEL_C++FLAGS += -fno-builtin -fno-exceptions -fno-rtti -D$(OBOS_TARGET_DEFINE) ; KERNEL_C++FLAGS += -DBOCHS_DEBUG_HACK=$(BOCHS_DEBUG_HACK) ; +if $(GCC_VERSION[1]) >= 3 { + KERNEL_C++FLAGS += -fno-use-cxa-atexit ; +} # We might later want to introduce debug levels or handle the whole issue # differently. For now there's only on or off.