/[gentoo-x86]/eclass/toolchain-funcs.eclass
Gentoo

Diff of /eclass/toolchain-funcs.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.68 Revision 1.70
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.68 2007/03/15 15:55:59 kevquinn Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.70 2007/06/16 07:11:43 vapier Exp $
4# 4#
5# Maintainer: Toolchain Ninjas <toolchain@gentoo.org> 5# Maintainer: Toolchain Ninjas <toolchain@gentoo.org>
6# 6#
7# This eclass contains (or should) functions to get common info 7# This eclass contains (or should) functions to get common info
8# about the toolchain (libc/compiler/binutils/etc...) 8# about the toolchain (libc/compiler/binutils/etc...)
9 9
10inherit multilib 10___ECLASS_RECUR_TOOLCHAIN_FUNCS="yes"
11[[ -z ${___ECLASS_RECUR_MULTILIB} ]] && inherit multilib
11 12
12DESCRIPTION="Based on the ${ECLASS} eclass" 13DESCRIPTION="Based on the ${ECLASS} eclass"
13 14
14tc-getPROG() { 15tc-getPROG() {
15 local var=$1 16 local var=$1
290# gen_usr_ldscript libfoo.so 291# gen_usr_ldscript libfoo.so
291# 292#
292# Note that you should in general use the unversioned name of 293# Note that you should in general use the unversioned name of
293# the library, as ldconfig should usually update it correctly 294# the library, as ldconfig should usually update it correctly
294# to point to the latest version of the library present. 295# to point to the latest version of the library present.
295_tc_gen_usr_ldscript() { 296gen_usr_ldscript() {
296 local lib libdir=$(get_libdir) output_format="" 297 local lib libdir=$(get_libdir) output_format=""
297 # Just make sure it exists 298 # Just make sure it exists
298 dodir /usr/${libdir} 299 dodir /usr/${libdir}
299 300
300 # OUTPUT_FORMAT gives hints to the linker as to what binary format 301 # OUTPUT_FORMAT gives hints to the linker as to what binary format
322 END_LDSCRIPT 323 END_LDSCRIPT
323 fi 324 fi
324 fperms a+x "/usr/${libdir}/${lib}" || die "could not change perms on ${lib}" 325 fperms a+x "/usr/${libdir}/${lib}" || die "could not change perms on ${lib}"
325 done 326 done
326} 327}
327gen_usr_ldscript() { _tc_gen_usr_ldscript "$@" ; }

Legend:
Removed from v.1.68  
changed lines
  Added in v.1.70

  ViewVC Help
Powered by ViewVC 1.1.20