summaryrefslogtreecommitdiffstats
path: root/bin/ebuild-helpers/dosym
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ebuild-helpers/dosym')
-rwxr-xr-xbin/ebuild-helpers/dosym3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ebuild-helpers/dosym b/bin/ebuild-helpers/dosym
index 8b7b304ee..8925001e4 100755
--- a/bin/ebuild-helpers/dosym
+++ b/bin/ebuild-helpers/dosym
@@ -9,7 +9,8 @@ if [[ $# -ne 2 ]] ; then
exit 1
fi
-case "$EAPI" in 0|1|2) ED=${D} ;; esac
+[[ " ${USE} " == *" prefix "* ]] || \
+ case "$EAPI" in 0|1|2) ED=${D} ;; esac
if [[ ${2} == */ ]] || \
[[ -d ${ED}${2} && ! -L ${ED}${2} ]] ; then