diff options
Diffstat (limited to 'eclass/multilib.eclass')
-rw-r--r-- | eclass/multilib.eclass | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/eclass/multilib.eclass b/eclass/multilib.eclass index 8c953871a65..a80511c2ee5 100644 --- a/eclass/multilib.eclass +++ b/eclass/multilib.eclass @@ -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: |