Module Name:    src
Committed By:   christos
Date:           Sat Oct 25 12:54:28 UTC 2014

Modified Files:
        src/lib: Makefile

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


To generate a diff of this commit:
cvs rdiff -u -r1.218 -r1.219 src/lib/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/Makefile
diff -u src/lib/Makefile:1.218 src/lib/Makefile:1.219
--- src/lib/Makefile:1.218	Fri Oct 24 18:42:40 2014
+++ src/lib/Makefile	Sat Oct 25 08:54:28 2014
@@ -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/bsd/libc++
 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 ====================

Reply via email to