diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2002-09-11 00:40:39 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2002-09-11 00:40:39 +0000 |
commit | 65741ee6b7140635316e09ef1ce0a1292e0151b4 (patch) | |
tree | 9b26eb11351cfe0b1007547e32ba01ea993da00e /eclass/gcc.eclass | |
parent | updated pcmcia-cs mask (diff) | |
download | gentoo-2-65741ee6b7140635316e09ef1ce0a1292e0151b4.tar.gz gentoo-2-65741ee6b7140635316e09ef1ce0a1292e0151b4.tar.bz2 gentoo-2-65741ee6b7140635316e09ef1ce0a1292e0151b4.zip |
more functions
Diffstat (limited to 'eclass/gcc.eclass')
-rw-r--r-- | eclass/gcc.eclass | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/eclass/gcc.eclass b/eclass/gcc.eclass index ffc7a4e87cca..e162cb7f5397 100644 --- a/eclass/gcc.eclass +++ b/eclass/gcc.eclass @@ -1,7 +1,7 @@ # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author: Martin Schlemmer <azarah@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/eclass/gcc.eclass,v 1.2 2002/09/10 20:21:29 azarah Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/gcc.eclass,v 1.3 2002/09/11 00:40:39 azarah Exp $ # This eclass contains (or should) functions to get common info about gcc ECLASS=gcc INHERITED="$INHERITED $ECLASS" @@ -80,3 +80,21 @@ gcc-libpath() { echo "/usr/lib/gcc-lib/$($(gcc-getCC) -dumpmachine)/$(gcc-fullversion)" } +gcc-libstdc-version() { + + if [ "$(gcc-major-version)" -ge 3 ] + then + local libstdc="$(ls $(gcc-libpath)/libstdc++.so.?.?.?)" + + libstdc="${libstdc##*/}" + echo "${libstdc/libstdc++.so.}" + else + echo + fi +} + +gcc-libstdc-major-version() { + + echo "$(echo $(gcc-libstdc-version) | cut -f1 -d.)" +} + |