mirror of
https://github.com/NixOS/patchelf.git
synced 2025-10-19 11:24:11 +08:00
tests/endianess.sh: fix out-of-tree build
This commit is contained in:
@@ -6,7 +6,7 @@ for arch in ppc64 ppc64le; do
|
||||
rm -rf ${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}"
|
||||
|
||||
@@ -19,6 +19,6 @@ for arch in ppc64 ppc64le; do
|
||||
# check whether rpath is still present
|
||||
if ! ${PATCHELF} --print-rpath ${SCRATCH}/main-shrunk | grep -q "$rpath"; then
|
||||
echo "rpath was removed for ${arch}"
|
||||
exit 1
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
Reference in New Issue
Block a user