Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libc/Makefile,v rcsdiff: /ftp/cvs/cvsroot/src/lib/libc/Makefile,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.171 retrieving revision 1.172 diff -u -p -r1.171 -r1.172 --- src/lib/libc/Makefile 2018/08/03 02:29:35 1.171 +++ src/lib/libc/Makefile 2018/08/03 14:01:21 1.172 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.171 2018/08/03 02:29:35 kamil Exp $ +# $NetBSD: Makefile,v 1.172 2018/08/03 14:01:21 kamil Exp $ # @(#)Makefile 8.2 (Berkeley) 2/3/94 # # All library objects contain sccsid strings by default; they may be @@ -17,7 +17,9 @@ # The Hesiod functions are always in libc. To choose that getpwent() and friends # actually call the Hesiod functions, put -DHESIOD on the CPPFLAGS line below. -LIBCSANITIZERFLAGS+= -fno-sanitize=function # generated code depends on RTTI + +# generated code depends on RTTI +LIBCSANITIZERFLAGS+= ${${ACTIVE_CC} == "clang":? -fno-sanitize=function :} .include "Makefile.inc"