summaryrefslogtreecommitdiff
blob: 5e3242d8ff41f65a4e3a467940eed8d6c5f4a8f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2

# When x86-linux runs on an amd64 host having /lib32,
# we need to have binutils to search there too (#360197).
# The patches to do so are applied upon SYMLINK_LIB=yes,
# needed when /lib32 is (a symlink to) an existing directory.
if [[ ${CATEGORY}/${PN} = sys-devel/binutils ]] \
&& [[ ${EBUILD_PHASE} == setup ]] \
&& [[ -d ${ROOT}lib32/. ]] \
; then
	export SYMLINK_LIB=yes
fi