diff options
author | Greg Steuck <gnezdo@cvs.openbsd.org> | 2022-02-16 03:49:41 +0000 |
---|---|---|
committer | Greg Steuck <gnezdo@cvs.openbsd.org> | 2022-02-16 03:49:41 +0000 |
commit | 28d2348c73004305c2904d4bf35e8ac554414165 (patch) | |
tree | 8ceb083a6b1d593c812b7ce1861e0aeff0e327db | |
parent | 5041c863374cf6c9328e3d05853f8a56be24eda5 (diff) |
Plug ubsan_minimal into gnu/lib/libclang_rt build
ok jca@
-rw-r--r-- | gnu/lib/libclang_rt/Makefile | 3 | ||||
-rw-r--r-- | gnu/lib/libclang_rt/ubsan_minimal/Makefile | 35 |
2 files changed, 37 insertions, 1 deletions
diff --git a/gnu/lib/libclang_rt/Makefile b/gnu/lib/libclang_rt/Makefile index 165d533f780..19c0480c4bd 100644 --- a/gnu/lib/libclang_rt/Makefile +++ b/gnu/lib/libclang_rt/Makefile @@ -1,7 +1,8 @@ -# $OpenBSD: Makefile,v 1.1 2021/09/28 08:35:06 fcambus Exp $ +# $OpenBSD: Makefile,v 1.2 2022/02/16 03:49:40 gnezdo Exp $ .include <bsd.own.mk> SUBDIR+=profile +SUBDIR+=ubsan_minimal .include <bsd.subdir.mk> diff --git a/gnu/lib/libclang_rt/ubsan_minimal/Makefile b/gnu/lib/libclang_rt/ubsan_minimal/Makefile new file mode 100644 index 00000000000..802c74d6b9d --- /dev/null +++ b/gnu/lib/libclang_rt/ubsan_minimal/Makefile @@ -0,0 +1,35 @@ +# $OpenBSD: Makefile,v 1.1 2022/02/16 03:49:40 gnezdo Exp $ + +.include <bsd.own.mk> + +LLVM_V= 13.0.0 +LIBDIR= /usr/lib/clang/${LLVM_V}/lib + +.if ${COMPILER_VERSION:L} != "clang" +CC= clang +CXX= clang++ +.endif + +.if ${BUILD_CLANG:L} == "yes" + +LIB= clang_rt.ubsan_minimal +NOPIC= +NOPROFILE= + +CFLAGS+= -fPIC +CPPFLAGS+= -I${BSDSRCDIR}/gnu/llvm/compiler-rt/lib + +.PATH: ${.CURDIR}/../../../llvm/compiler-rt/lib/ubsan_minimal + +SRCS+= ubsan_minimal_handlers.cpp + +beforeinstall: + ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m ${DIRMODE} \ + ${DESTDIR}${LIBDIR} + +.include <bsd.lib.mk> + +.else +NOPROG= +.include <bsd.prog.mk> +.endif |