Also path LD_LIBRARY_PATH for install

Fails with cmake binary backport like on bionic s390x

[0/4] cd "/build/llvm-toolchain-snapshot-15~++20220214091440+07153f7e072d/build-llvm/runtimes/runtimes-bins" && /tmp/cmake/bin/cmake --build .
/tmp/cmake/bin/cmake: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory
This commit is contained in:
Sylvestre Ledru 2022-02-14 21:19:02 +01:00
parent 4a57c47f08
commit caaf053d78
2 changed files with 8 additions and 1 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
llvm-toolchain-14 (1:14.0.0~+rc1-2) UNRELEASED; urgency=medium
* Also path LD_LIBRARY_PATH for install
when cmake binary backport like on bionic s390x (for apt.llvm.org)
-- Sylvestre Ledru <sylvestre@debian.org> Mon, 14 Feb 2022 21:19:44 +0100
llvm-toolchain-14 (1:14.0.0~+rc1-1) unstable; urgency=medium
* First testing release of 14

2
debian/rules vendored
View File

@ -733,7 +733,7 @@ override_dh_auto_install:
# Clean up temporary files to make sure the install works
rm -rf $(find $(TARGET_BUILD) -wholename '*CMakeFiles*' -not -name CMakeLists.txt -a -name "*.dir" -type d)
# install/fast enables a make install without recompiling temporary files
LD_LIBRARY_PATH=$(STAGE_2_LIB_DIR) DESTDIR=$(DEB_INST)/ ninja -C $(TARGET_BUILD) $(VERBOSE) stage2-install
LD_LIBRARY_PATH=$(STAGE_2_LIB_DIR):$$LD_LIBRARY_PATH DESTDIR=$(DEB_INST)/ ninja -C $(TARGET_BUILD) $(VERBOSE) stage2-install
# Not used on Linux.
rm -f $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/bin/argdumper