diff --git a/usr.bin/stat/Makefile b/usr.bin/stat/Makefile index 0c6fe6c51a71..47906e4511b9 100644 --- a/usr.bin/stat/Makefile +++ b/usr.bin/stat/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2019/02/04 09:51:47 mrg Exp $ +# $NetBSD: Makefile,v 1.10 2019/02/04 10:03:16 mrg Exp $ PROG= stat @@ -10,7 +10,7 @@ MLINKS= stat.1 readlink.1 .include # Has fallthru comment that is missed -.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc" +.if !defined(HOSTPROG) && defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc" COPTS.stat.c+= -Wno-error=implicit-fallthrough .endif