From d03dabb4608ef584d406bb4c514cd6eee8e3d805 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 26 Jul 2015 03:30:21 +0300 Subject: [PATCH] common.mak: Pass -fexceptions to clang and clang++. This results in generation of .eh_frame sections. These sections can be discarded during final linking, or included if exception handling is desired. For exception handling to work, all sources must be built with -fexceptions. --- software/common.mak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/software/common.mak b/software/common.mak index bed8305d..154e028a 100644 --- a/software/common.mak +++ b/software/common.mak @@ -36,8 +36,8 @@ endif # INCLUDES = -I$(MSCDIR)/software/include/base -I$(MSCDIR)/software/include -I$(MSCDIR)/common COMMONFLAGS = -Os $(CPUFLAGS) -Wall -fno-builtin -nostdinc -DMSC_GIT_ID=$(MSC_GIT_ID) $(INCLUDES) -CFLAGS = $(COMMONFLAGS) -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -CXXFLAGS = $(COMMONFLAGS) -fno-exceptions -ffreestanding +CFLAGS = $(COMMONFLAGS) -fexceptions -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes +CXXFLAGS = $(COMMONFLAGS) -fexceptions -fno-rtti -ffreestanding LDFLAGS = -nostdlib -nodefaultlibs -L$(MSCDIR)/software/include # compile and generate dependencies, based on -- 2.30.2