summaryrefslogtreecommitdiffstats
path: root/gnu/lib/libstdc++/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/lib/libstdc++/Makefile')
-rw-r--r--gnu/lib/libstdc++/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/lib/libstdc++/Makefile b/gnu/lib/libstdc++/Makefile
index 7244115..43e0893 100644
--- a/gnu/lib/libstdc++/Makefile
+++ b/gnu/lib/libstdc++/Makefile
@@ -12,6 +12,9 @@ LIB= stdc++
SHLIB_MAJOR= 5
CFLAGS+= -DIN_GLIBCPP_V3 -DHAVE_CONFIG_H
+.if ${MACHINE_ARCH} == "arm"
+CFLAGS+= -D_GLIBCXX_SJLJ_EXCEPTIONS=1
+.endif
CFLAGS+= -I${.CURDIR} -I${SUPDIR} -I${GCCDIR} -I${SRCDIR}/include
CFLAGS+= -frandom-seed=RepeatabilityConsideredGood
CXXFLAGS+= -fno-implicit-templates -ffunction-sections -fdata-sections \
OpenPOWER on IntegriCloud