summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2017-02-11 11:04:51 +0100
committerUlrich Müller <ulm@gentoo.org>2017-02-13 13:14:38 +0100
commit07c97343ca94967e51fef397b1cff2b1baa8b093 (patch)
treee08b1d20691724f31cf15bc4ed04ad0156a5f3c2 /eclass/flag-o-matic.eclass
parentapp-emulation/qemu: amd64 stable wrt bug #608728 (diff)
downloadgentoo-07c97343ca94967e51fef397b1cff2b1baa8b093.tar.gz
gentoo-07c97343ca94967e51fef397b1cff2b1baa8b093.tar.bz2
gentoo-07c97343ca94967e51fef397b1cff2b1baa8b093.zip
flag-o-matic.eclass: Mark has_m64() as dead.
The function is not used by any ebuild.
Diffstat (limited to 'eclass/flag-o-matic.eclass')
-rw-r--r--eclass/flag-o-matic.eclass23
1 files changed, 2 insertions, 21 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index 23319ad407f5..57d207b08313 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -562,27 +562,8 @@ get-flag() {
return 1
}
-# @FUNCTION: has_m64
-# @DESCRIPTION:
-# This doesn't test if the flag is accepted, it tests if the flag actually
-# WORKS. Non-multilib gcc will take both -m32 and -m64. If the flag works
-# return code is 0, else the return code is 1.
has_m64() {
- eqawarn "${FUNCNAME}: don't use this anymore"
-
- # this doesnt test if the flag is accepted, it tests if the flag
- # actually -WORKS-. non-multilib gcc will take both -m32 and -m64!
- # please dont replace this function with test_flag in some future
- # clean-up!
-
- local temp="$(emktemp)"
- echo "int main() { return(0); }" > "${temp}".c
- MY_CC=$(tc-getCC)
- ${MY_CC/ .*/} -m64 -o "$(emktemp)" "${temp}".c > /dev/null 2>&1
- local ret=$?
- rm -f "${temp}".c
- [[ ${ret} != 1 ]] && return 0
- return 1
+ die "${FUNCNAME}: don't use this anymore"
}
has_m32() {