diff options
author | tron <tron@pkgsrc.org> | 2001-01-13 00:18:51 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2001-01-13 00:18:51 +0000 |
commit | 3a68b03e5ec93e6d136fd41095b20d6b18ab4da8 (patch) | |
tree | 8ca8ccacad3905def769c47da63a90c38c43e1cc /mk/bsd.pkg.mk | |
parent | 3f2c0b72ea24a64406d5c75b4cf627c96eae7d93 (diff) | |
download | pkgsrc-3a68b03e5ec93e6d136fd41095b20d6b18ab4da8.tar.gz |
Don't cause a build failure if "${CC} -version" doesn't work.
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r-- | mk/bsd.pkg.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 833aff9ad81..bfe224566ab 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.640 2001/01/11 10:53:10 tron Exp $ +# $NetBSD: bsd.pkg.mk,v 1.641 2001/01/13 00:18:51 tron Exp $ # # This file is in the public domain. # @@ -3161,7 +3161,9 @@ fake-pkg: ${PLIST} ${DESCR} .for def in ${BUILD_DEFS} @${ECHO} ${def}= ${${def}:Q} | ${SED} -e 's|^PATH=[^ ]*|PATH=...|' >> ${BUILD_INFO_FILE} .endfor - @${ECHO} "CC= ${CC}-`${CC} --version`" >> ${BUILD_INFO_FILE} + @if ${CC} --version >/dev/null 2>&1; then \ + ${ECHO} "CC= ${CC}-`${CC} --version`" >> ${BUILD_INFO_FILE}; \ + fi .ifdef USE_PERL5 @${ECHO} "PERL= `${PERL5} --version 2>/dev/null | ${GREP} 'This is perl'`" >> ${BUILD_INFO_FILE} .endif |