Makefile.inc (7fff4413af5f22ce98eac43f9a94cfe77d5fcef1) Makefile.inc (53b715b5ba3f838ab20de8d3f34297c6555c7981)
1# $FreeBSD$
2
3.include <src.opts.mk>
4
1# $FreeBSD$
2
3.include <src.opts.mk>
4
5CRTARCH=${MACHINE_CPUARCH:C/amd64/x86_64/}
6CRTSRC=${.CURDIR}/../../../contrib/compiler-rt
5CRTARCH= ${MACHINE_CPUARCH:C/amd64/x86_64/}
6CRTSRC= ${SRCTOP}/contrib/compiler-rt
7
7
8CLANGDIR=/usr/lib/clang/3.9.0
9LIBDIR=${CLANGDIR}/lib/freebsd
8.PATH: ${CRTSRC}/lib
10
9
10CLANGDIR= /usr/lib/clang/3.9.0
11LIBDIR= ${CLANGDIR}/lib/freebsd
12
11NO_PIC=
13NO_PIC=
12MK_PROFILE=no
14MK_PROFILE= no
13
15
14WARNS?=0
16WARNS?= 0
15
16SSP_CFLAGS=
17
18SSP_CFLAGS=
17CFLAGS+=-DNDEBUG
18CFLAGS+=${PICFLAG}
19CFLAGS+=-fno-builtin
20CFLAGS+=-fno-exceptions
21CFLAGS+=-fno-rtti
19CFLAGS+= -DNDEBUG
20CFLAGS+= ${PICFLAG}
21CFLAGS+= -fno-builtin
22CFLAGS+= -fno-exceptions
23CFLAGS+= -fno-rtti
22.if ${COMPILER_VERSION} >= 30700
24.if ${COMPILER_VERSION} >= 30700
23CFLAGS+=-fno-sanitize=safe-stack
25CFLAGS+= -fno-sanitize=safe-stack
24.endif
26.endif
25CFLAGS+=-fno-stack-protector
26CFLAGS+=-funwind-tables
27CFLAGS+=-fvisibility-inlines-hidden
28CFLAGS+=-fvisibility=hidden
29CFLAGS+=-I${CRTSRC}/lib
30CXXFLAGS+=-std=c++11
27CFLAGS+= -fno-stack-protector
28CFLAGS+= -funwind-tables
29CFLAGS+= -fvisibility-inlines-hidden
30CFLAGS+= -fvisibility=hidden
31CFLAGS+= -I${CRTSRC}/lib
32CXXFLAGS+= -std=c++11