aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2024-04-19 21:45:05 +0000
committerBrooks Davis <brooks@FreeBSD.org>2024-04-19 21:56:13 +0000
commit0b9e3585805e83718c3ebdab923aca51597193cd (patch)
treec2b477d7e13074d35f010d66b73a85f416be1363 /lib
parent5fbdcd65fe5cc08959a6ea692b501ec0e98f8b9d (diff)
downloadsrc-0b9e3585805e83718c3ebdab923aca51597193cd.tar.gz
src-0b9e3585805e83718c3ebdab923aca51597193cd.zip
Diffstat (limited to 'lib')
-rw-r--r--lib/libgcc_eh/Makefile.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libgcc_eh/Makefile.inc b/lib/libgcc_eh/Makefile.inc
index 9e194cc875f1..75e7d743a720 100644
--- a/lib/libgcc_eh/Makefile.inc
+++ b/lib/libgcc_eh/Makefile.inc
@@ -17,6 +17,9 @@ SRCS_EXC+= UnwindRegistersSave.S
SRCS_EXC+= libunwind.cpp
SRCS+= ${SRCS_EXC}
+.if ${MACHINE} == "amd64" || ${MACHINE} == "i386" || ${MACHINE} == "powerpc"
+CFLAGS.UnwindLevel1-gcc-ext.c+= -D_LIBUNWIND_SUPPORT_FRAME_APIS
+.endif
.for file in ${SRCS_EXC:M*.c}
CFLAGS.${file}+= -fno-exceptions -funwind-tables
.if ${MK_ASAN} != "no"