summaryrefslogtreecommitdiff
path: root/lang/rust/patches/patch-src_llvm_Makefile.rules
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2016-09-06 10:36:49 +0000
committerjperkin <jperkin@pkgsrc.org>2016-09-06 10:36:49 +0000
commitc4fe7b8a81d1fae1ab31b7204d42324b2132ca53 (patch)
tree808f526026801feec4e84052a8d24c7efcfd93fe /lang/rust/patches/patch-src_llvm_Makefile.rules
parent4dba6e64c2c21258a661023129fe2ce2209f948d (diff)
downloadpkgsrc-c4fe7b8a81d1fae1ab31b7204d42324b2132ca53.tar.gz
Import rust 1.11.0 as lang/rust into pkgsrc.
pkgsrc notes: * The build requires binary bootstraps built by the Rust team. Due to the requirement that only the previous version is supported as a bootstrap compiler, and new versions of Rust are released every 6 weeks, it is unlikely to be practical to build TNF bootstraps. Users should evaluate whether they trust binaries from upstream. * There is currently no SunOS bootstrap provided by the Rust team, so for now a version built by myself is provided by Joyent. * Only Darwin/Linux/SunOS are currently supported. The Rust team do provide NetBSD bootstraps so support should be easy enough to add. Information about Rust from the DESCR: Rust is a systems programming language focused on three goals: safety, speed, and concurrency. It maintains these goals without having a garbage collector, making it a useful language for a number of use cases other languages aren't good at: embedding in other languages, programs with specific space and time requirements, and writing low-level code, like device drivers and operating systems. It improves on current languages targeting this space by having a number of compile-time safety checks that produce no runtime overhead, while eliminating all data races. Rust also aims to achieve "zero-cost abstractions" even though some of these abstractions feel like those of a high-level language. Even then, Rust still allows precise control like a low-level language would.
Diffstat (limited to 'lang/rust/patches/patch-src_llvm_Makefile.rules')
-rw-r--r--lang/rust/patches/patch-src_llvm_Makefile.rules14
1 files changed, 14 insertions, 0 deletions
diff --git a/lang/rust/patches/patch-src_llvm_Makefile.rules b/lang/rust/patches/patch-src_llvm_Makefile.rules
new file mode 100644
index 00000000000..c87a7110d34
--- /dev/null
+++ b/lang/rust/patches/patch-src_llvm_Makefile.rules
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_llvm_Makefile.rules,v 1.1 2016/09/06 10:36:49 jperkin Exp $
+
+"-z discard-unused" is only supported by Oracle Solaris ld.
+
+--- src/llvm/Makefile.rules.orig 2016-07-04 18:05:12.000000000 +0000
++++ src/llvm/Makefile.rules
+@@ -644,7 +644,6 @@ ifndef NO_DEAD_STRIP
+ LD.Flags += -Wl,-dead_strip
+ else
+ ifeq ($(HOST_OS),SunOS)
+- LD.Flags += -Wl,-z -Wl,discard-unused=sections
+ else
+ ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW))
+ LD.Flags += -Wl,--gc-sections