From: whitequark Date: Sun, 26 Jul 2015 00:30:21 +0000 (+0300) Subject: common.mak: Pass -fexceptions to clang and clang++. X-Git-Tag: 24jan2021_ls180~2191 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d03dabb4608ef584d406bb4c514cd6eee8e3d805;p=litex.git 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. --- 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