Don't run chrpath for libclang on powerpc and powerpcspe

This commit is contained in:
John Paul Adrian Glaubitz 2023-02-17 17:33:38 +01:00
parent 4a5259b918
commit 0af59c9be3
2 changed files with 5 additions and 0 deletions

3
debian/changelog vendored
View File

@ -10,6 +10,9 @@ llvm-toolchain-15 (1:15.0.7-2) UNRELEASED; urgency=medium
[ Samuel Thibault ]
* Fix disabling amdgpu on non-Linux.
[ John Paul Adrian Glaubitz ]
* Don't run chrpath for libclang on powerpc and powerpcspe
-- Sylvestre Ledru <sylvestre@debian.org> Sun, 15 Jan 2023 10:54:41 +0100
llvm-toolchain-15 (1:15.0.7-1) unstable; urgency=medium

2
debian/rules vendored
View File

@ -988,8 +988,10 @@ override_dh_auto_install:
# Only run on executable, not script
chrpath -d `find $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/bin/ -type f -executable -exec file -i '{}' \; | grep 'x-executable; charset=binary'|cut -d: -f1`
ifeq (,$(filter $(DEB_HOST_ARCH), powerpc powerpcspe))
# To fix custom-library-search-path
chrpath -d $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/clang/$(LLVM_VERSION)*/lib/linux/*.so
endif
: # libclang
cd debian/tmp/usr/lib/llvm-$(LLVM_VERSION)/lib/ && \