From 98cc804c5d2f58c476ffe1e23e610fc07a0e5ad2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sun, 18 May 2003 16:16:09 +0000 Subject: [PATCH] Added KERNEL_C++FLAGS to define -fno-exceptions and -fno-rtti for kernel objects automatically. Also added a new OBOS_BOOT_LIB variable - might be changed again in the future, though. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3254 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- Jamrules | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Jamrules b/Jamrules index 9fc6ebae50..738a257952 100644 --- a/Jamrules +++ b/Jamrules @@ -71,10 +71,12 @@ switch $(TARGET_CPU) { OBOS_TARGET_TYPE ?= "application/x-vnd.Be-elfexecutable" ; } DEFINES += __POWERPC__ ; + OBOS_BOOT_LIB = openfirmware ; } case x86 : { # nothing special to do here... + OBOS_BOOT_LIB = bios_ia32 ; } case * : Exit "Currently unsupported build platform:" $(TARGET_CPU) ; @@ -105,12 +107,18 @@ if $(WARNINGS) { CCFLAGS += -Wpointer-arith -Wcast-align -Wsign-compare ; C++FLAGS += -Wall -Wno-multichar -Wmissing-prototypes -Wno-ctor-dtor-privacy -Woverloaded-virtual ; C++FLAGS += -Wpointer-arith -Wcast-align -Wsign-compare ; +} else { + CCFLAGS += -Wno-multichar ; + C++FLAGS += -Wno-multichar ; } +# standard kernel C/C++ flags KERNEL_CCFLAGS ?= -Wall -Wno-multichar -Wmissing-prototypes -finline -nostdinc ; KERNEL_CCFLAGS += -fno-builtin -D$(OBOS_TARGET_DEFINE) ; 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) ; # We might later want to introduce debug levels or handle the whole issue # differently. For now there's only on or off. @@ -120,6 +128,7 @@ if $(DEBUG) { CCFLAGS += -g -DDEBUG=$(DEBUG) ; C++FLAGS += -g -DDEBUG=$(DEBUG) ; KERNEL_CCFLAGS += -g -DDEBUG=$(DEBUG) ; + KERNEL_C++FLAGS += -g -DDEBUG=$(DEBUG) ; LINKFLAGS += -g ; } else { OPTIM ?= -O2 ; @@ -1409,7 +1418,7 @@ rule SetupKernel SetupObjectsDir ; CCFLAGS on $(_objs) = $(KERNEL_CCFLAGS) $(2) ; - C++FLAGS on $(_objs) = $(KERNEL_CCFLAGS) $(2) ; + C++FLAGS on $(_objs) = $(KERNEL_C++FLAGS) $(2) ; } rule KernelObjects