aboutsummaryrefslogtreecommitdiff
path: root/lib/libgcc_eh/Makefile.inc
blob: 7321fbea78f9c68c035408d554760f0919773778 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# $FreeBSD$

COMPILERRTDIR=	${SRCTOP}/contrib/compiler-rt
UNWINDINCDIR=	${SRCTOP}/contrib/llvm/projects/libunwind/include
UNWINDSRCDIR=	${SRCTOP}/contrib/llvm/projects/libunwind/src

CFLAGS+=${PICFLAG} -fvisibility=hidden -DVISIBILITY_HIDDEN

.PATH: ${COMPILERRTDIR}/lib/builtins
.PATH: ${UNWINDSRCDIR}
SRCS+=	gcc_personality_v0.c
SRCS+=	int_util.c
SRCS+=	Unwind-EHABI.cpp
SRCS+=	Unwind-sjlj.c
SRCS+=	UnwindLevel1-gcc-ext.c
SRCS+=	UnwindLevel1.c
SRCS+=	UnwindRegistersRestore.S
SRCS+=	UnwindRegistersSave.S
SRCS+=	libunwind.cpp

CFLAGS+=	-I${UNWINDINCDIR} -I${.CURDIR} -D_LIBUNWIND_IS_NATIVE_ONLY
.if empty(CXXFLAGS:M-std=*)
CXXFLAGS+=	-std=c++11
.endif
CXXFLAGS+=	-fno-rtti
STATIC_CXXFLAGS+= -fvisibility=hidden -fPIC
.if ${MK_DIRDEPS_BUILD} == "yes"
# Avoid dependency on lib/libc++
CFLAGS+=	-I${SRCTOP}/contrib/libc++/include
.endif