mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 10:37:22 -08:00
net-im/qtox: properly detect whether GCC is used for compiling
Package-Manager: portage-2.2.28
This commit is contained in:
@@ -47,7 +47,7 @@ DEPEND="${RDEPEND}
|
||||
|
||||
pkg_pretend() {
|
||||
if [[ ${MERGE_TYPE} != binary ]]; then
|
||||
if [[ $(tc-getCXX) == *g++ ]] ; then
|
||||
if tc-is-gcc ; then
|
||||
if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 8 || $(gcc-major-version) -lt 4 ]] ; then
|
||||
eerror "You need at least sys-devel/gcc-4.8.3"
|
||||
die "You need at least sys-devel/gcc-4.8.3"
|
||||
|
||||
@@ -48,7 +48,7 @@ DEPEND="${RDEPEND}
|
||||
|
||||
pkg_pretend() {
|
||||
if [[ ${MERGE_TYPE} != binary ]]; then
|
||||
if [[ $(tc-getCXX) == *g++ ]] ; then
|
||||
if tc-is-gcc ; then
|
||||
if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 8 || $(gcc-major-version) -lt 4 ]] ; then
|
||||
eerror "You need at least sys-devel/gcc-4.8.3"
|
||||
die "You need at least sys-devel/gcc-4.8.3"
|
||||
|
||||
@@ -47,7 +47,7 @@ DEPEND="${RDEPEND}
|
||||
|
||||
pkg_pretend() {
|
||||
if [[ ${MERGE_TYPE} != binary ]]; then
|
||||
if [[ $(tc-getCXX) == *g++ ]] ; then
|
||||
if tc-is-gcc ; then
|
||||
if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 8 || $(gcc-major-version) -lt 4 ]] ; then
|
||||
eerror "You need at least sys-devel/gcc-4.8.3"
|
||||
die "You need at least sys-devel/gcc-4.8.3"
|
||||
|
||||
Reference in New Issue
Block a user