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