Skip to content

Commit

Permalink
common.mak: Pass -fexceptions to clang and clang++.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
whitequark committed Jul 26, 2015
1 parent 69c2a70 commit d03dabb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions software/common.mak
Expand Up @@ -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
Expand Down

0 comments on commit d03dabb

Please sign in to comment.