From 8a7608a3b3112bdcf7824402f87640ef6d63cf64 Mon Sep 17 00:00:00 2001 From: tnn Date: Fri, 25 Jun 2021 20:17:56 +0000 Subject: [PATCH] ensure defined(HAVE_GCC) before use of ${HAVE_GCC} --- usr.bin/xlint/lint1/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/xlint/lint1/Makefile b/usr.bin/xlint/lint1/Makefile index 740cecdc01cd..1d23fb93d3d9 100644 --- a/usr.bin/xlint/lint1/Makefile +++ b/usr.bin/xlint/lint1/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.72 2021/06/23 07:11:41 rillig Exp $ +# $NetBSD: Makefile,v 1.73 2021/06/25 20:17:56 tnn Exp $ .include @@ -28,7 +28,7 @@ CPPFLAGS+= ${DEBUG:D-DDEBUG} COPTS.err.c+= ${${ACTIVE_CC} == "clang":? -Wno-format-nonliteral :} # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101177 -.if ${HAVE_GCC} == 9 && \ +.if defined(HAVE_GCC) && ${HAVE_GCC} == 9 && \ (${MACHINE_ARCH} == "sh3el" || ${MACHINE_ARCH} == "sh3eb") COPTS.lex.c+= -O0 .endif