diff options
author | 2016-09-04 21:00:53 +0100 | |
---|---|---|
committer | 2016-09-04 21:00:53 +0100 | |
commit | 67e2107c3e7fcf58c2e5c78ac7a7dd7a11f3d25b (patch) | |
tree | 19cee0c2f7a5af776dc9cb89d658487b84416c68 /eclass | |
parent | Add net-analyzer/netdata-1.2.0-r1, update net-analyzer/netdata-9999 (diff) | |
download | srcshelton-67e2107c3e7fcf58c2e5c78ac7a7dd7a11f3d25b.tar.gz srcshelton-67e2107c3e7fcf58c2e5c78ac7a7dd7a11f3d25b.tar.bz2 srcshelton-67e2107c3e7fcf58c2e5c78ac7a7dd7a11f3d25b.zip |
Update eclass/multilib.eclass
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/multilib.eclass | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/eclass/multilib.eclass b/eclass/multilib.eclass index 7165e78b..84ac1b30 100644 --- a/eclass/multilib.eclass +++ b/eclass/multilib.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Id: 8c953871a65658d34995a7da94076308773e478a $ +# $Id: a80511c2ee52d3b11fe7ef3b1c3b6d271d378188 $ # @ECLASS: multilib.eclass # @MAINTAINER: @@ -225,6 +225,20 @@ number_abis() { echo $# } +# @FUNCTION: get_exeext +# @DESCRIPTION: +# Returns standard executable program suffix (null, .exe, etc.) +# for the current platform identified by CHOST. +# +# Example: +# get_exeext +# Returns: null string (almost everywhere) || .exe (mingw*) || ... +get_exeext() { + case ${CHOST} in + *-cygwin*|mingw*|*-mingw*) echo ".exe";; + esac +} + # @FUNCTION: get_libname # @USAGE: [version] # @DESCRIPTION: |