tests/endianess.sh: fix out-of-tree build

This commit is contained in:
Jörg Thalheim
2021-12-07 17:05:01 +01:00
parent d311cf7d08
commit 44fea0de2f

View File

@@ -6,7 +6,7 @@ for arch in ppc64 ppc64le; do
rm -rf ${SCRATCH} rm -rf ${SCRATCH}
mkdir -p ${SCRATCH} mkdir -p ${SCRATCH}
cp endianness/${arch}/main endianness/${arch}/libtest.so ${SCRATCH}/ cp ${srcdir}/endianness/${arch}/main ${srcdir}/endianness/${arch}/libtest.so ${SCRATCH}/
rpath="${PWD}/${SCRATCH}" rpath="${PWD}/${SCRATCH}"
@@ -19,6 +19,6 @@ for arch in ppc64 ppc64le; do
# check whether rpath is still present # check whether rpath is still present
if ! ${PATCHELF} --print-rpath ${SCRATCH}/main-shrunk | grep -q "$rpath"; then if ! ${PATCHELF} --print-rpath ${SCRATCH}/main-shrunk | grep -q "$rpath"; then
echo "rpath was removed for ${arch}" echo "rpath was removed for ${arch}"
exit 1 exit 1
fi fi
done done