diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2022-07-07 20:54:57 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2022-07-07 20:54:57 +0000 |
| commit | 0b09867f671465d0703cc374972c455af594538c (patch) | |
| tree | bf118a94b9e0941e47b36f13486500e8c50521b5 | |
| parent | a6e734d779b3b5f5679588c1e6f66d0d1533fcbf (diff) | |
| -rw-r--r-- | lib/Makefile | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Makefile b/lib/Makefile index 816374552f0a..482e4d603f4b 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -180,11 +180,8 @@ SUBDIR.${MK_LDNS}+= libldns SUBDIR.${MK_STATS}+= libstats # The libraries under libclang_rt can only be built by clang and when we enable -# C++ support. Furthermore, they can only be built for certain architectures. -.if ${COMPILER_TYPE} == "clang" && ${MK_CXX} != "no" && \ - (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ - ${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "i386" || \ - ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "riscv") +# C++ support. +.if ${COMPILER_TYPE} == "clang" && ${MK_CXX} != "no" _libclang_rt= libclang_rt .elif (${MK_ASAN} != "no" || ${MK_UBSAN} != "no") && make(all) .error Requested build with sanitizers but cannot build runtime libraries! |
