diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2021-12-05 06:34:55 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2021-12-05 06:34:55 +0000 |
commit | 9e58f9c1daa43ca7d834a9d4cf7d75c73a02df3b (patch) | |
tree | d3de556cb174e40106dc8852190f1e5617758bae /configure | |
parent | 4a8fff492b0f19fb3900bbc88be1dbade0ddc6a9 (diff) | |
download | utmps-9e58f9c1daa43ca7d834a9d4cf7d75c73a02df3b.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-x | configure | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -207,7 +207,7 @@ for arg ; do --host=*|--target=*) target=${arg#*=} ;; --build=*) build=${arg#*=} ;; -* ) echo "$0: unknown option $arg" ;; - *=*) ;; + *=*) eval "$arg" ;; *) target=$arg ;; esac done @@ -271,11 +271,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 |