Module Name: src Committed By: kamil Date: Fri Aug 3 14:01:21 UTC 2018
Modified Files: src/lib/libc: Makefile Log Message: Restrict -fno-sanitize=function to Clang/LLVM only The base GCC version 6,x does not support this option. To generate a diff of this commit: cvs rdiff -u -r1.171 -r1.172 src/lib/libc/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/libc/Makefile diff -u src/lib/libc/Makefile:1.171 src/lib/libc/Makefile:1.172 --- src/lib/libc/Makefile:1.171 Fri Aug 3 02:29:35 2018 +++ src/lib/libc/Makefile Fri Aug 3 14:01:21 2018 @@ -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"