valgrind: use @Lzhiyong's align_fix.py to fix underaligned TLS segment

Otherwise we get:

$ valgrind
error: "valgrind": executable's TLS segment is underaligned: alignment is 8, needs to be at least 64 for ARM64 Bionic
Aborted
This commit is contained in:
Henrik Grimler 2022-02-12 09:14:24 +01:00
parent 8a82ee521d
commit 38ffdd9187
No known key found for this signature in database
GPG Key ID: B0076E490B71616B
1 changed files with 7 additions and 0 deletions

View File

@ -27,3 +27,10 @@ termux_step_pre_configure() {
autoreconf -fi
}
termux_step_post_massage() {
termux_download https://github.com/Lzhiyong/termux-ndk/raw/902f483485b4/patches/align_fix.py \
$TERMUX_PKG_CACHEDIR/align_fix.py \
83579beef5f0899300b2f1cb7cfad25c3ee2c90089f9b7eb83ce7472d0e730bd
python3 $TERMUX_PKG_CACHEDIR/align_fix.py bin/valgrind
}