summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-12-05 06:34:33 +0000
committerLaurent Bercot <ska@appnovation.com>2021-12-05 06:34:33 +0000
commitbd189eacd9d27c5bdf2d689b80b671d6bc32b00c (patch)
tree9c5f4240cdd1ddd3d718131e03571325b26fcbbd /configure
parent569f61c3102140f5acaeb780b17af4b05956445e (diff)
downloads6-dns-bd189eacd9d27c5bdf2d689b80b671d6bc32b00c.tar.xz
configure: add var control tweak and DESTDIR support for slashpackage
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 6 insertions, 6 deletions
diff --git a/configure b/configure
index 34d59b4..ea5aabb 100755
--- a/configure
+++ b/configure
@@ -192,7 +192,7 @@ for arg ; do
--host=*|--target=*) target=${arg#*=} ;;
--build=*) build=${arg#*=} ;;
-* ) echo "$0: unknown option $arg" ;;
- *=*) ;;
+ *=*) eval "$arg" ;;
*) target=$arg ;;
esac
done
@@ -256,11 +256,11 @@ if $slashpackage ; then
cond=true
fi
if $cond ; then
- addincpath="$addincpath -I${sproot}${dep}/include"
- vpaths="$vpaths ${sproot}${dep}/library"
- addlibspath="$addlibspath -L${sproot}${dep}/library"
- vpathd="$vpathd ${sproot}${dep}/library.so"
- addlibdpath="$addlibdpath -L${sproot}${dep}/library.so"
+ addincpath="$addincpath -I${DESTDIR}${sproot}${dep}/include"
+ vpaths="$vpaths ${DESTDIR}${sproot}${dep}/library"
+ addlibspath="$addlibspath -L${DESTDIR}${sproot}${dep}/library"
+ vpathd="$vpathd ${DESTDIR}${sproot}${dep}/library.so"
+ addlibdpath="$addlibdpath -L${DESTDIR}${sproot}${dep}/library.so"
fi
done < package/deps-build
fi