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