Ignore a c++ that is version other than 3.1 if it does not also match
cc's version. libgcc.a will have been clobbered and will no longer have the old c++ support. Submitted by: jhb
This commit is contained in:
parent
5685a7738f
commit
3c67aa80ec
@ -574,7 +574,10 @@ _strfile= games/fortune/strfile
|
||||
.endif
|
||||
# This horrible kludge should be deleted in about 2 weeks, say July 9, 2002
|
||||
_cxx_version!= ${CXX} -v 2>&1 | awk '$$0 ~ /^gcc version/ {print $$3}'
|
||||
.if ${CXX:T} != "c++" || ${_cxx_version} != "3.1" || exists(/usr/lib/libstdc++.so.4)
|
||||
_cc_version!= ${CC} -v 2>&1 | awk '$$0 ~ /^gcc version/ {print $$3}'
|
||||
.if ${CXX:T} != "c++" || \
|
||||
(${_cxx_version} == ${_cc_version} && ${_cxx_version} != "3.1") || \
|
||||
exists(/usr/lib/libstdc++.so.4)
|
||||
_cxx_consumers= gnu/usr.bin/gperf gnu/usr.bin/groff
|
||||
.endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user