sanitizer libraries that already work on FreeBSD: * asan: Address Sanitizer * ubsan: Undefined Behavior Sanitizer * profile: Profile Guided Optimization support Please note that these libraries are *experimental* at this stage, so the main Makefile is not yet connected to the build. Since I didn't want to needlessly edit BSD.usr.dist, you will also have to create the install directory /usr/lib/clang/3.5.0/lib/freebsd manually for now.
26 lines
454 B
Makefile
26 lines
454 B
Makefile
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
CRTARCH=${MACHINE_CPUARCH:C/amd64/x86_64/}
|
|
CRTSRC=${.CURDIR}/../../../contrib/compiler-rt
|
|
|
|
LIBDIR=/usr/lib/clang/3.5.0/lib/freebsd
|
|
|
|
NO_PIC=
|
|
MK_PROFILE=no
|
|
|
|
WARNS?=0
|
|
|
|
SSP_CFLAGS=
|
|
CFLAGS+=-DNDEBUG
|
|
CFLAGS+=${PICFLAG}
|
|
CFLAGS+=-fno-builtin
|
|
CFLAGS+=-fno-exceptions
|
|
CFLAGS+=-fno-rtti
|
|
CFLAGS+=-fno-stack-protector
|
|
CFLAGS+=-funwind-tables
|
|
CFLAGS+=-fvisibility-inlines-hidden
|
|
CFLAGS+=-fvisibility=hidden
|
|
CFLAGS+=-I${CRTSRC}/lib
|