* Restore the patch for D148945, searching /usr/lib/llvm-17/lib by default.

Closes: #1056580.
This commit is contained in:
Matthias Klose 2023-11-27 10:36:47 +01:00
parent 959d8c8ee1
commit c07405b825
3 changed files with 24 additions and 0 deletions

2
debian/changelog vendored
View File

@ -7,6 +7,8 @@ llvm-toolchain-17 (1:17.0.5-2) UNRELEASED; urgency=medium
* Fix stripping build flags on Ubuntu/ppc64el.
* libclang1-17: Only encode the major version in the soname. Closes: #1056126.
* libclang1-17: Provide a symlink for the last soname with the full version.
* Restore the patch for D148945, searching /usr/lib/llvm-17/lib by default.
Closes: #1056580.
[ Sylvestre Ledru ]
* Add a symlink for libc++experimental.a to /usr/lib/*/libc++experimental.a

21
debian/patches/D148945-revert.diff vendored Normal file
View File

@ -0,0 +1,21 @@
Restore that for now, we're not GenToo ...
https://reviews.llvm.org/D148945
https://reviews.llvm.org/D122444
--- a/clang/lib/Driver/ToolChains/Linux.cpp
+++ b/clang/lib/Driver/ToolChains/Linux.cpp
@@ -333,6 +333,13 @@ Linux::Linux(const Driver &D, const llvm
Generic_GCC::AddMultiarchPaths(D, SysRoot, OSLibDir, Paths);
+ // The deprecated -DLLVM_ENABLE_PROJECTS=libcxx configuration installs
+ // libc++.so in D.Dir+"/../lib/". Detect this path.
+ // TODO Remove once LLVM_ENABLE_PROJECTS=libcxx is unsupported.
+ if (StringRef(D.Dir).startswith(SysRoot) &&
+ D.getVFS().exists(D.Dir + "/../lib/libc++.so"))
+ addPathIfExists(D, D.Dir + "/../lib", Paths);
+
addPathIfExists(D, concat(SysRoot, "/lib"), Paths);
addPathIfExists(D, concat(SysRoot, "/usr/lib"), Paths);
}

View File

@ -150,3 +150,4 @@ link-grpc.diff
D158066-simd-ppc64el.patch
ubuntu-releases.patch
libclang-major-version-only.diff
D148945-revert.diff