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