summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/ebuild.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 9d27491ad..f54110273 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -466,11 +466,7 @@ econf() {
export CONF_PREFIX
[ "${CONF_LIBDIR:0:1}" != "/" ] && CONF_LIBDIR="/${CONF_LIBDIR}"
- CONF_LIBDIR_RESULT="${CONF_PREFIX}${CONF_LIBDIR}"
- for x in 1 2 3; do
- # The escaping is weird. It will break if you escape the last one.
- CONF_LIBDIR_RESULT="${CONF_LIBDIR_RESULT//\/\///}"
- done
+ CONF_LIBDIR_RESULT="$(strip_duplicate_slashes ${CONF_PREFIX}${CONF_LIBDIR})"
LOCAL_EXTRA_ECONF="--libdir=${CONF_LIBDIR_RESULT} ${LOCAL_EXTRA_ECONF}"
fi