summaryrefslogtreecommitdiffstats
path: root/lib/libclang_rt/Makefile.inc
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2015-01-08 22:40:56 +0000
committerdim <dim@FreeBSD.org>2015-01-08 22:40:56 +0000
commitcfd5b20c8bb6e3677ef84152d28058c0ead0de39 (patch)
tree10a31b9de36569ab1fe8db3a634523f537786570 /lib/libclang_rt/Makefile.inc
parent69eebc007b1de201e785d92a4cf26b250bf0e93c (diff)
downloadFreeBSD-src-cfd5b20c8bb6e3677ef84152d28058c0ead0de39.zip
FreeBSD-src-cfd5b20c8bb6e3677ef84152d28058c0ead0de39.tar.gz
Now compiler-rt has been updated in r276851, bring in the various
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.
Diffstat (limited to 'lib/libclang_rt/Makefile.inc')
-rw-r--r--lib/libclang_rt/Makefile.inc25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/libclang_rt/Makefile.inc b/lib/libclang_rt/Makefile.inc
new file mode 100644
index 0000000..b0ddd28
--- /dev/null
+++ b/lib/libclang_rt/Makefile.inc
@@ -0,0 +1,25 @@
+# $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
OpenPOWER on IntegriCloud