mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
gnu: rust: Do not refer to 'gcc' from the top level.
Fixes <https://bugs.gnu.org/31392>. Reported by Marius Bakke <mbakke@fastmail.com>. * gnu/packages/rust.scm (rust-1.19)[native-search-paths]: Avoid top-level reference to 'gcc', which could lead to unbound variable errors.
This commit is contained in:
parent
6283431443
commit
afc2bf5306
1 changed files with 14 additions and 1 deletions
|
@ -237,8 +237,21 @@ (define-public rust-1.19
|
||||||
("llvm" ,llvm-3.9.1)
|
("llvm" ,llvm-3.9.1)
|
||||||
("openssl" ,openssl)
|
("openssl" ,openssl)
|
||||||
("libcurl" ,curl))) ; For "cargo"
|
("libcurl" ,curl))) ; For "cargo"
|
||||||
|
|
||||||
;; rustc invokes gcc, so we need to set its search paths accordingly.
|
;; rustc invokes gcc, so we need to set its search paths accordingly.
|
||||||
(native-search-paths (package-native-search-paths gcc))
|
;; Note: duplicate its value here to cope with circular dependencies among
|
||||||
|
;; modules (see <https://bugs.gnu.org/31392>).
|
||||||
|
(native-search-paths
|
||||||
|
(list (search-path-specification
|
||||||
|
(variable "C_INCLUDE_PATH")
|
||||||
|
(files '("include")))
|
||||||
|
(search-path-specification
|
||||||
|
(variable "CPLUS_INCLUDE_PATH")
|
||||||
|
(files '("include")))
|
||||||
|
(search-path-specification
|
||||||
|
(variable "LIBRARY_PATH")
|
||||||
|
(files '("lib" "lib64")))))
|
||||||
|
|
||||||
(synopsis "Compiler for the Rust progamming language")
|
(synopsis "Compiler for the Rust progamming language")
|
||||||
(description "Rust is a systems programming language that provides memory
|
(description "Rust is a systems programming language that provides memory
|
||||||
safety and thread safety guarantees.")
|
safety and thread safety guarantees.")
|
||||||
|
|
Loading…
Reference in a new issue