/[gentoo-x86]/eclass/multilib.eclass
Gentoo

Diff of /eclass/multilib.eclass

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

Revision 1.75 Revision 1.76
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 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/multilib.eclass,v 1.75 2009/10/08 19:54:40 grobian Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.76 2009/10/08 19:56:14 grobian Exp $
4 4
5# @ECLASS: multilib.eclass 5# @ECLASS: multilib.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# amd64@gentoo.org 7# amd64@gentoo.org
8# toolchain@gentoo.org 8# toolchain@gentoo.org
548 esac 548 esac
549 done 549 done
550 fi 550 fi
551} 551}
552 552
553# @FUNCTION: get_modname
554# @USAGE:
555# @DESCRIPTION:
556# Returns modulename with proper suffix {.so,.bundle,etc} for the current
557# platform identified by CHOST.
558#
559# Example:
560# libfoo$(get_modname)
561# Returns: libfoo.so (ELF) || libfoo.bundle (MACH) || ...
562get_modname() {
563 local modname
564 local ver=$1
565 case ${CHOST} in
566 *-darwin*) modname="bundle";;
567 *) modname="so";;
568 esac
569
570 echo ".${modname}"
571}
572
553# This is for the toolchain to setup profile variables when pulling in 573# This is for the toolchain to setup profile variables when pulling in
554# a crosscompiler (and thus they aren't set in the profile) 574# a crosscompiler (and thus they aren't set in the profile)
555multilib_env() { 575multilib_env() {
556 local CTARGET=${1:-${CTARGET}} 576 local CTARGET=${1:-${CTARGET}}
557 577

Legend:
Removed from v.1.75  
changed lines
  Added in v.1.76

  ViewVC Help
Powered by ViewVC 1.1.20