diff options
author | Marat Safin <jeizsm@gmail.com> | 2018-09-13 21:15:10 +0300 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-09-15 23:40:18 +0200 |
commit | 15cd8b16fa30646b46783003e8b9553f35a04e69 (patch) | |
tree | edbeb337df12f856fb18996b17bdff649d677485 /community/rust/musl-fix-static-linking.patch | |
parent | 7a1d3e7a08bbefa85bf2c72bd9dede90f5c5d7bc (diff) | |
download | aports-15cd8b16fa30646b46783003e8b9553f35a04e69.tar.bz2 aports-15cd8b16fa30646b46783003e8b9553f35a04e69.tar.xz |
community/rust: upgrade to 1.29.0
Diffstat (limited to 'community/rust/musl-fix-static-linking.patch')
-rw-r--r-- | community/rust/musl-fix-static-linking.patch | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/community/rust/musl-fix-static-linking.patch b/community/rust/musl-fix-static-linking.patch index b72c725526..b1e6a694ac 100644 --- a/community/rust/musl-fix-static-linking.patch +++ b/community/rust/musl-fix-static-linking.patch @@ -12,18 +12,18 @@ static linking is requested, instead of dynamically as before. --- a/src/librustc_codegen_llvm/back/link.rs +++ b/src/librustc_codegen_llvm/back/link.rs -@@ -1151,13 +1151,13 @@ - let relevant_libs = trans.crate_info.used_libraries.iter().filter(|l| { - relevant_lib(sess, l) - }); - +@@ -1218,13 +1218,13 @@ fn add_local_native_libraries(cmd: &mut dyn Linker, let search_path = archive_search_paths(sess); for lib in relevant_libs { + let name = match lib.name { + Some(ref l) => l, + None => continue, + }; match lib.kind { -- NativeLibraryKind::NativeUnknown => cmd.link_dylib(&lib.name.as_str()), -+ NativeLibraryKind::NativeUnknown => if sess.crt_static() { cmd.link_staticlib(&lib.name.as_str()) } else { cmd.link_dylib(&lib.name.as_str()) }, - NativeLibraryKind::NativeFramework => cmd.link_framework(&lib.name.as_str()), - NativeLibraryKind::NativeStaticNobundle => cmd.link_staticlib(&lib.name.as_str()), - NativeLibraryKind::NativeStatic => cmd.link_whole_staticlib(&lib.name.as_str(), +- NativeLibraryKind::NativeUnknown => cmd.link_dylib(&name.as_str()), ++ NativeLibraryKind::NativeUnknown => if sess.crt_static() { cmd.link_staticlib(&name.as_str()) } else { cmd.link_dylib(&name.as_str()) }, + NativeLibraryKind::NativeFramework => cmd.link_framework(&name.as_str()), + NativeLibraryKind::NativeStaticNobundle => cmd.link_staticlib(&name.as_str()), + NativeLibraryKind::NativeStatic => cmd.link_whole_staticlib(&name.as_str(), &search_path) } |