Fix 'make upgrade'.
authorSascha Wildner <saw@online.de>
Wed, 25 Feb 2015 21:13:42 +0000 (22:13 +0100)
committerSascha Wildner <saw@online.de>
Wed, 25 Feb 2015 21:13:42 +0000 (22:13 +0100)
Seems sys.mk is pulled in for 'make upgrade' too and CCVER isn't defined
at this point.

Reported-by: Robin Hahling <robin.hahling@gw-computing.net>
share/mk/sys.mk

index 6f3a513..28eeb5d 100644 (file)
@@ -63,7 +63,7 @@ CXXFLAGS      ?=      ${CXXINCLUDES} ${CFLAGS:N-std=*:N-Wnested-externs:N-W*-prototypes:N-
 # XXX gcc50 (at least) warns about its own C++ headers with
 #     -Wunused-local-typedefs, so disable until fixed
 #
-.if (${CCVER:Mgcc4[89]} || ${CCVER:Mgcc5*})
+.if defined(CCVER) && (${CCVER:Mgcc4[89]} || ${CCVER:Mgcc5*})
 CXXFLAGS       +=      -Wno-unused-local-typedefs
 .endif
 .if !defined(SYSBUILD) && defined(.MAKE.BUILT.BY) && ${.MAKE.BUILT.BY:Mgcc47}