Don't run chrpath for libclang on sparc and sparc64

This commit is contained in:
John Paul Adrian Glaubitz 2023-11-09 10:08:32 +01:00
parent f0fcfca366
commit fecd5d216d
2 changed files with 8 additions and 1 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
llvm-toolchain-17 (1:17.0.4-2) UNRELEASED; urgency=medium
[ John Paul Adrian Glaubitz ]
* Don't run chrpath for libclang on sparc and sparc64
-- John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Thu, 09 Nov 2023 10:07:49 +0100
llvm-toolchain-17 (1:17.0.4-1) unstable; urgency=medium
[ Matthias Klose ]

2
debian/rules vendored
View File

@ -1080,7 +1080,7 @@ 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))
ifeq (,$(filter $(DEB_HOST_ARCH), powerpc powerpcspe sparc sparc64))
ifneq (,$(filter $(DEB_HOST_ARCH_OS),linux))
# To fix custom-library-search-path
chrpath -d $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/clang/$(LLVM_VERSION)*/lib/linux/*.so