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

Diff of /eclass/multilib.eclass

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

Revision 1.102 Revision 1.103
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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.102 2013/01/21 19:22:25 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.103 2013/04/22 01:18:51 vapier 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
395 395
396 # First restore any saved state we have laying around. 396 # First restore any saved state we have laying around.
397 if [[ ${__DEFAULT_ABI_SAVED} == "true" ]] ; then 397 if [[ ${__DEFAULT_ABI_SAVED} == "true" ]] ; then
398 for v in CHOST CBUILD AS CC CXX LD PKG_CONFIG_{LIBDIR,PATH} ; do 398 for v in CHOST CBUILD AS CC CXX LD PKG_CONFIG_{LIBDIR,PATH} ; do
399 vv="__abi_saved_${v}" 399 vv="__abi_saved_${v}"
400 export ${v}="${!vv}" 400 [[ ${!vv+set} == "set" ]] && export ${v}="${!vv}" || unset ${v}
401 unset ${vv} 401 unset ${vv}
402 done 402 done
403 unset __DEFAULT_ABI_SAVED 403 unset __DEFAULT_ABI_SAVED
404 fi 404 fi
405 405
406 # We want to avoid the behind-the-back magic of gcc-config as it 406 # We want to avoid the behind-the-back magic of gcc-config as it
407 # screws up ccache and distcc. See #196243 for more info. 407 # screws up ccache and distcc. See #196243 for more info.
408 if [[ ${ABI} != ${DEFAULT_ABI} ]] ; then 408 if [[ ${ABI} != ${DEFAULT_ABI} ]] ; then
409 # Back that multilib-ass up so we can restore it later 409 # Back that multilib-ass up so we can restore it later
410 for v in CHOST CBUILD AS CC CXX LD PKG_CONFIG_{LIBDIR,PATH} ; do 410 for v in CHOST CBUILD AS CC CXX LD PKG_CONFIG_{LIBDIR,PATH} ; do
411 export __abi_saved_${v}="${!v}" 411 vv="__abi_saved_${v}"
412 [[ ${!v+set} == "set" ]] && export ${vv}="${!v}" || unset ${vv}
412 done 413 done
413 export __DEFAULT_ABI_SAVED="true" 414 export __DEFAULT_ABI_SAVED="true"
414 415
415 # Set the CHOST native first so that we pick up the native 416 # Set the CHOST native first so that we pick up the native
416 # toolchain and not a cross-compiler by accident #202811. 417 # toolchain and not a cross-compiler by accident #202811.

Legend:
Removed from v.1.102  
changed lines
  Added in v.1.103

  ViewVC Help
Powered by ViewVC 1.1.20