summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-12-05 06:34:38 +0000
committerLaurent Bercot <ska@appnovation.com>2021-12-05 06:34:38 +0000
commit73be5fb37ac9b33c9e174bf3d53b60e33a6243d3 (patch)
tree94d561ddab46ea3fac730af1f8687b6e760fb793
parentbc22cd5c688a01adccd2fb007991b9f00d727a26 (diff)
downloads6-linux-init-73be5fb37ac9b33c9e174bf3d53b60e33a6243d3.tar.xz
configure: add var control tweak and DESTDIR support for slashpackage
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rwxr-xr-xconfigure12
1 files changed, 6 insertions, 6 deletions
diff --git a/configure b/configure
index 20d70db..a47ec4b 100755
--- a/configure
+++ b/configure
@@ -218,7 +218,7 @@ for arg ; do
--host=*|--target=*) target=${arg#*=} ;;
--build=*) build=${arg#*=} ;;
-* ) echo "$0: unknown option $arg" ;;
- *=*) ;;
+ *=*) eval "$arg" ;;
*) target=$arg ;;
esac
done
@@ -283,11 +283,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