summaryrefslogtreecommitdiffstats
path: root/lib/libclang_rt/Makefile.inc
blob: cd1e79142ee56e1cd853cd9f8676b613be7fb60f (plain)
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$

.include <src.opts.mk>

CRTARCH=${MACHINE_CPUARCH:C/amd64/x86_64/}
CRTSRC=${.CURDIR}/../../../contrib/compiler-rt

CLANGDIR=/usr/lib/clang/3.8.0
LIBDIR=${CLANGDIR}/lib/freebsd

NO_PIC=
MK_PROFILE=no

WARNS?=0

SSP_CFLAGS=
CFLAGS+=-DNDEBUG
CFLAGS+=${PICFLAG}
CFLAGS+=-fno-builtin
CFLAGS+=-fno-exceptions
CFLAGS+=-fno-rtti
.if ${COMPILER_VERSION} >= 30700
CFLAGS+=-fno-sanitize=safe-stack
.endif
CFLAGS+=-fno-stack-protector
CFLAGS+=-funwind-tables
CFLAGS+=-fvisibility-inlines-hidden
CFLAGS+=-fvisibility=hidden
CFLAGS+=-I${CRTSRC}/lib
CXXFLAGS+=-std=c++11
OpenPOWER on IntegriCloud