Build gperf only if we're using g++ (not clang++)

gperf is used as a build tool for g++ and is not needed for Clang
architectures. Ports and third-party software that need it can use the
up-to-date devel/gperf port.

PR:		194103 (exp-run)
Reviewed by:	bapt
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D886
This commit is contained in:
Ed Maste 2014-10-09 23:05:31 +00:00
parent a6897b9320
commit ddd96d231d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=272849
3 changed files with 13 additions and 1 deletions

View File

@ -31,6 +31,11 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 11.x IS SLOW:
disable the most expensive debugging functionality run
"ln -s 'abort:false,junk:false' /etc/malloc.conf".)
20141009:
gperf has been removed from the base system for architectures
that use clang. Ports that require gperf will obtain it from the
devel/gperf port.
20140923:
pjdfstest has been moved from tools/regression/pjdfstest to
contrib/pjdfstest .

View File

@ -18,7 +18,9 @@ SUBDIR= ${_binutils} \
${_texinfo}
.if ${MK_CXX} != "no"
.if ${MK_GCC} != "no"
_gperf= gperf
.endif
.if ${MK_GROFF} != "no"
_groff= groff
.endif

View File

@ -591,13 +591,18 @@ OLD_FILES+=usr/share/man/man1/ctm_smail.1.gz
OLD_FILES+=usr/share/man/man5/ctm.5.gz
.endif
# devd(8) and gperf(1) not listed here on purpose
# devd(8) not listed here on purpose
.if ${MK_CXX} == no
OLD_FILES+=usr/bin/CC
OLD_FILES+=usr/bin/c++
OLD_FILES+=usr/bin/c++filt
OLD_FILES+=usr/bin/g++
OLD_FILES+=usr/libexec/cc1plus
.if ${MK_GCC} == no
OLD_FILES+=usr/bin/gperf
OLD_FILES+=usr/share/info/gperf.info.gz
OLD_FILES+=usr/share/man/man1/gperf.1.gz
.endif
.endif
.if ${MK_FMTREE} == no