diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2022-11-06 22:39:38 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2022-11-06 22:40:51 +0100 |
commit | f7b184c0044d32924f01b8b8003e59d1ac49ba00 (patch) | |
tree | 73778c808df6cda25ccb9d2aa6c6301035720012 /tests/no-gnu-hash.sh | |
parent | a1f7aa8bda432831183b4f33531f2e133ab39cb4 (diff) | |
download | patchelf-f7b184c0044d32924f01b8b8003e59d1ac49ba00.tar.gz |
fix checkPhase for cross builds
fixes https://github.com/NixOS/patchelf/issues/417
Diffstat (limited to 'tests/no-gnu-hash.sh')
-rwxr-xr-x | tests/no-gnu-hash.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/no-gnu-hash.sh b/tests/no-gnu-hash.sh index a98f459..0ce93f4 100755 --- a/tests/no-gnu-hash.sh +++ b/tests/no-gnu-hash.sh @@ -1,12 +1,13 @@ #! /bin/sh -e SCRATCH=scratch/$(basename $0 .sh) +STRIP=${STRIP:-strip} rm -rf ${SCRATCH} mkdir -p ${SCRATCH} cp simple ${SCRATCH}/ -strip --remove-section=.gnu.hash ${SCRATCH}/simple +${STRIP} --remove-section=.gnu.hash ${SCRATCH}/simple # Check if patchelf handles binaries with GNU_HASH in dynamic section but # without .gnu.hash section |