pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/rust Fix build under NetBSD etc. using internal llvm



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f9d3ceb002c3
branches:  trunk
changeset: 363869:f9d3ceb002c3
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Sun Jun 18 09:21:56 2017 +0000

description:
Fix build under NetBSD etc. using internal llvm

lang/llvm 4.0 is not compatible for this version of rust.

diffstat:

 lang/rust/Makefile |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (25 lines):

diff -r c13c3f9dee88 -r f9d3ceb002c3 lang/rust/Makefile
--- a/lang/rust/Makefile        Sun Jun 18 09:08:22 2017 +0000
+++ b/lang/rust/Makefile        Sun Jun 18 09:21:56 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2017/03/20 11:36:35 jperkin Exp $
+# $NetBSD: Makefile,v 1.8 2017/06/18 09:21:56 ryoon Exp $
 
 DISTNAME=      rustc-1.16.0-src
 PKGNAME=       ${DISTNAME:S/rustc/rust/:S/-src//}
@@ -67,10 +67,11 @@
 #
 # Can't use pkgsrc llvm on SunOS at the moment due to a relocation error.
 #
-.if ${OPSYS} != "SunOS"
-.  include "../../lang/llvm/buildlink3.mk"
-CONFIGURE_ARGS+=       --llvm-root=${BUILDLINK_PREFIX.llvm}
-.endif
+## llvm 4.0 breaks lang/rust build. Use internal llvm instead.
+#.if ${OPSYS} != "SunOS"
+#.  include "../../lang/llvm/buildlink3.mk"
+#CONFIGURE_ARGS+=      --llvm-root=${BUILDLINK_PREFIX.llvm}
+#.endif
 
 #
 # Rust unfortunately requires itself to build.  On platforms which aren't



Home | Main Index | Thread Index | Old Index