diff options
author | grant <grant@pkgsrc.org> | 2003-04-15 00:57:22 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2003-04-15 00:57:22 +0000 |
commit | 8f61aa22f5ab583f486fce50e7a6f488900f66de (patch) | |
tree | f6ca8e8ae3cff6adf9e35601370ad65ef35be2af /mk | |
parent | f5766717fa476210d683d0dea6b4378e1343a0f9 (diff) | |
download | pkgsrc-8f61aa22f5ab583f486fce50e7a6f488900f66de.tar.gz |
use ${CC} -dumpversion instead of --version to avoid multiline output
from gcc3.
XXX this needs to be better handled for non-gcc compilers.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 39167323794..81496ba29ed 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1165 2003/04/14 23:18:40 hubertf Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1166 2003/04/15 00:57:22 grant Exp $ # # This file is in the public domain. # @@ -4058,8 +4058,8 @@ fake-pkg: ${PLIST} ${DESCR} ${MESSAGE} . for def in ${BUILD_DEFS} @${ECHO} ${def}= ${${def}:Q} | ${SED} -e 's|^PATH=[^ ]*|PATH=...|' >> ${BUILD_INFO_FILE} . endfor - @if ${CC} --version >/dev/null 2>&1; then \ - ${ECHO} "CC= ${CC}-`${CC} --version`" >> ${BUILD_INFO_FILE}; \ + @if ${CC} -dumpversion >/dev/null 2>&1; then \ + ${ECHO} "CC= ${CC}-`${CC} -dumpversion`" >> ${BUILD_INFO_FILE}; \ fi . if defined(USE_PERL5) && (${USE_PERL5} == "run") @${ECHO} "PERL= `${PERL5} --version 2>/dev/null | ${GREP} 'This is perl'`" >> ${BUILD_INFO_FILE} |