gnu: clang@7, clang@8: Do not refer to /lib on foreign distros.

Partly fixes <https://issues.guix.gnu.org/51088>.

* gnu/packages/patches/clang-7.0-libc-search-path.patch: Update.
* gnu/packages/patches/clang-8.0-libc-search-path.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/llvm.scm (clang-8): Use it.
This commit is contained in:
Ludovic Courtès 2021-10-08 22:41:30 +02:00 committed by Ludovic Courtès
parent 2ad1ef8446
commit 66caab54b9
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5
4 changed files with 143 additions and 36 deletions

View file

@ -681,7 +681,7 @@ of programming tools as well as libraries with equivalent functionality.")
(define-public clang-8
(clang-from-llvm llvm-8 clang-runtime-8
"0svk1f70hvpwrjp6x5i9kqwrqwxnmcrw5s7f4cxyd100mdd12k08"
#:patches '("clang-7.0-libc-search-path.patch")))
#:patches '("clang-8.0-libc-search-path.patch")))
(define-public clang-toolchain-8
(make-clang-toolchain clang-8))