Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib Try to future-proof this. Can libasan be built by clang?



details:   https://anonhg.NetBSD.org/src/rev/157b296b0f5d
branches:  trunk
changeset: 333250:157b296b0f5d
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Oct 25 12:54:28 2014 +0000

description:
Try to future-proof this. Can libasan be built by clang?

diffstat:

 lib/Makefile |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r a66c302c3db6 -r 157b296b0f5d lib/Makefile
--- a/lib/Makefile      Sat Oct 25 11:35:15 2014 +0000
+++ b/lib/Makefile      Sat Oct 25 12:54:28 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.218 2014/10/24 22:42:40 joerg Exp $
+#      $NetBSD: Makefile,v 1.219 2014/10/25 12:54:28 christos Exp $
 #      from: @(#)Makefile      5.25.1.1 (Berkeley) 5/7/91
 
 .include <bsd.own.mk>
@@ -143,8 +143,9 @@
 SUBDIR+=       ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libstdc++-v3
 SUBDIR+=       ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libsupc++
 .endif
-.if (${HAVE_GCC:U} == "48")
-SUBDIR+=       ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libasan
+SANITIZER_DIR=../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libasan
+.if exists(${SANITIZER_DIR})
+SUBDIR+=       ${SANITIZER_DIR}
 .endif
 
 #==================== 2nd library dependency barrier ====================



Home | Main Index | Thread Index | Old Index