From bbb6f2d463d19a76ca7433b2a4622d166005b2e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sun, 12 Oct 2003 21:04:53 +0000 Subject: [PATCH] Lets the boot loader compile under GCC 3 (and possibly other C++ kernel components). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4999 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- Jamrules | 3 +++ 1 file changed, 3 insertions(+) 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.