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

Diff of /eclass/multilib-build.eclass

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

Revision 1.42 Revision 1.43
1# Copyright 1999-2014 Gentoo Foundation 1# Copyright 1999-2014 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-build.eclass,v 1.42 2014/04/29 20:56:46 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v 1.43 2014/04/29 20:57:28 mgorny Exp $
4 4
5# @ECLASS: multilib-build.eclass 5# @ECLASS: multilib-build.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# gx86-multilib team <multilib@gentoo.org> 7# gx86-multilib team <multilib@gentoo.org>
8# @AUTHOR: 8# @AUTHOR:
293multilib_prepare_wrappers() { 293multilib_prepare_wrappers() {
294 debug-print-function ${FUNCNAME} "${@}" 294 debug-print-function ${FUNCNAME} "${@}"
295 295
296 [[ ${#} -le 1 ]] || die "${FUNCNAME}: too many arguments" 296 [[ ${#} -le 1 ]] || die "${FUNCNAME}: too many arguments"
297 297
298 [[ ${COMPLETE_MULTILIB} == yes ]] && return
299
300 local root=${1:-${ED}} 298 local root=${1:-${ED}}
301 local f 299 local f
300
301 if [[ ${COMPLETE_MULTILIB} == yes ]]; then
302 # symlink '${CHOST}-foo -> foo' to support abi-wrapper while
303 # keeping ${CHOST}-foo calls correct.
304
305 for f in "${MULTILIB_CHOST_TOOLS[@]}"; do
306 # drop leading slash if it's there
307 f=${f#/}
308
309 local dir=${f%/*}
310 local fn=${f##*/}
311
312 ln -s "${fn}" "${root}/${dir}/${CHOST}-${fn}" || die
313 done
314
315 return
316 fi
302 317
303 for f in "${MULTILIB_WRAPPED_HEADERS[@]}"; do 318 for f in "${MULTILIB_WRAPPED_HEADERS[@]}"; do
304 # drop leading slash if it's there 319 # drop leading slash if it's there
305 f=${f#/} 320 f=${f#/}
306 321

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43

  ViewVC Help
Powered by ViewVC 1.1.20