diff --git a/lang/rust/Makefile b/lang/rust/Makefile index 05fd74132c90..56b2f7ad6ded 100644 --- a/lang/rust/Makefile +++ b/lang/rust/Makefile @@ -3,7 +3,7 @@ PORTNAME= rust PORTVERSION?= 1.22.1 -PORTREVISION?= 1 +PORTREVISION?= 2 CATEGORIES= lang MASTER_SITES= http://static.rust-lang.org/dist/:src \ LOCAL/dumbbell/rust:rust_bootstrap \ diff --git a/lang/rust/files/patch-src_librustc__back_target_freebsd__base.rs b/lang/rust/files/patch-src_librustc__back_target_freebsd__base.rs index 40890bb39ab8..2f2b3ccc423b 100644 --- a/lang/rust/files/patch-src_librustc__back_target_freebsd__base.rs +++ b/lang/rust/files/patch-src_librustc__back_target_freebsd__base.rs @@ -1,12 +1,13 @@ Return struct like OpenBSD, see src/librustc_trans/cabi_x86.rs ---- src/librustc_back/target/freebsd_base.rs.orig 2017-07-17 22:10:50 UTC +--- src/librustc_back/target/freebsd_base.rs.orig 2017-11-22 21:33:00 UTC +++ src/librustc_back/target/freebsd_base.rs -@@ -31,6 +31,7 @@ pub fn opts() -> TargetOptions { +@@ -31,6 +31,8 @@ pub fn opts() -> TargetOptions { target_family: Some("unix".to_string()), linker_is_gnu: true, has_rpath: true, + is_like_openbsd: true, ++ eliminate_frame_pointer: false, pre_link_args: args, position_independent_executables: true, - exe_allocation_crate: super::maybe_jemalloc(), + relro_level: RelroLevel::Full,