* gnu/packages/rust.scm (rustc)[native-search-paths]: New field.
---
 gnu/packages/rust.scm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index ae0453004..e1d973ac7 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -2,6 +2,7 @@
 ;;; Copyright © 2016 David Craven <[email protected]>
 ;;; Copyright © 2016 Eric Le Bihan <[email protected]>
 ;;; Copyright © 2016 ng0 <[email protected]>
+;;; Copyright © 2016 Ben Woodcroft <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -272,6 +273,10 @@ rustc-bootstrap and cargo-bootstrap packages.")
                (wrap-program (string-append out "/bin/rustc")
                  `("PATH" ":" prefix (,(string-append ld-wrapper "/bin")))
                  `("LIBRARY_PATH" ":" suffix (,(string-append libc 
"/lib"))))))))))
+    (native-search-paths
+     (list (search-path-specification
+            (variable "LIBRARY_PATH")
+            (files '("lib" "lib64")))))
     (synopsis "Compiler for the Rust progamming language")
     (description "Rust is a systems programming language that provides memory
 safety and thread safety guarantees.")
-- 
2.11.0


Reply via email to