aboutsummaryrefslogtreecommitdiff
path: root/lib/libgcc_eh/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libgcc_eh/Makefile.inc')
-rw-r--r--lib/libgcc_eh/Makefile.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libgcc_eh/Makefile.inc b/lib/libgcc_eh/Makefile.inc
index d69084f059cf..a8536e2413f1 100644
--- a/lib/libgcc_eh/Makefile.inc
+++ b/lib/libgcc_eh/Makefile.inc
@@ -20,7 +20,10 @@ SRCS_EXC+= libunwind.cpp
SRCS+= ${SRCS_EXC}
.for file in ${SRCS_EXC:M*.c}
-CFLAGS.${file}+= -fexceptions
+CFLAGS.${file}+= -fno-exceptions -funwind-tables
+.endfor
+.for file in ${SRCS_EXC:M*.cpp}
+CXXFLAGS.${file}+= -fno-exceptions -funwind-tables
.endfor
CFLAGS+= -I${UNWINDINCDIR} -I${.CURDIR} -D_LIBUNWIND_IS_NATIVE_ONLY