From 51f94c87ade72ef476c0ae398c02f6939a54c584 Mon Sep 17 00:00:00 2001 From: yar Date: Thu, 18 Oct 2007 15:21:35 +0000 Subject: Explicitly verify if we have found the VERSION_GEN script instead of passing the possibly null argument to awk(1) and getting an obscure error from it. --- share/mk/bsd.symver.mk | 3 +++ 1 file changed, 3 insertions(+) (limited to 'share') diff --git a/share/mk/bsd.symver.mk b/share/mk/bsd.symver.mk index 30a822e..7626274 100644 --- a/share/mk/bsd.symver.mk +++ b/share/mk/bsd.symver.mk @@ -34,6 +34,9 @@ _vgen= ${path}/${VERSION_GEN} .endif .endif .endfor +.if empty(_vgen) +.error ${VERSION_GEN} not found in the search path. +.endif # Run the symbol maps through the C preprocessor before passing # them to the symbol version generator. -- cgit v1.1