• Nicolas Iooss's avatar
    scripts/env_use_destdir: propagate PREFIX, LIBDIR, BINDIR, etc. · 1baa8ffa
    Nicolas Iooss authored
    On systems using non-default `PREFIX`, `LIBDIR`, `SHLIBDIR`, `BINDIR`
    or `SBINDIR`, running
    `DESTDIR=/path/to/destdir ./scripts/env_use_destdir make test`
    does not perform the intended behavior, because the testing programs and
    libraries are installed into locations that are not added to
    More precisely, with `LIBDIR=/usr/lib64 SHLIBDIR=/lib64`, `env_use_destdir`
    does not work. Fix this by adding the installation directories relative
    to `DESTDIR` in `LD_LIBRARY_PATH` and `PATH`.
    Signed-off-by: default avatarNicolas Iooss <nicolas.iooss@m4x.org>
    Acked-by: default avatarPetr Lautrbach <plautrba@redhat.com>