#! /bin/bash

# This is sort of a poor man's ldd. It tries to set the libary path sufficiently for the test
# programs to link in a pseudo-chroot environment.

DIR="$(dirname "$(readlink -f "$0")")"
LD_TRACE_LOADED_OBJECTS=1 ${DIR}/../lib/ld-linux.so.2 --library-path "\$ORIGIN/../lib/:\$ORIGIN/../usr/lib32/" --inhibit-rpath "" "$@"
