Run chrpath for libclang on sparc and sparc64

This commit is contained in:
John Paul Adrian Glaubitz 2024-02-16 09:51:59 +01:00
parent 5162aed5c4
commit 042d184430
2 changed files with 2 additions and 1 deletions

1
debian/changelog vendored
View File

@ -6,6 +6,7 @@ llvm-toolchain-snapshot (1:19~++20240125092523+41fe98a6e7e5-1~exp2) UNRELEASED;
[ John Paul Adrian Glaubitz ]
* Install *clang_rt* on sparc and sparc64
* Run chrpath for libclang on sparc and sparc64
-- Sylvestre Ledru <sylvestre@debian.org> Thu, 25 Jan 2024 17:45:39 +0100

2
debian/rules vendored
View File

@ -1126,7 +1126,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 sparc sparc64))
ifeq (,$(filter $(DEB_HOST_ARCH), powerpc powerpcspe))
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