Skip to content

Instantly share code, notes, and snippets.

@petrochenkov
Created May 10, 2020 01:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petrochenkov/1a2e52b01a71d49d908756e194d3c3d9 to your computer and use it in GitHub Desktop.
Save petrochenkov/1a2e52b01a71d49d908756e194d3c3d9 to your computer and use it in GitHub Desktop.
+https://github.com/rust-lang/rust/issues/11937 - Link using the linker directly
+https://github.com/rust-lang/rust/issues/31322 - How to compile rust in a musl libc based linux system
+https://github.com/rust-lang/rust/issues/34987 - MUSL dynamic linking support
+https://github.com/rust-lang/libc/issues/290 - Can't statically link MSVC runtime
+https://github.com/rust-lang/rfcs/pull/1684 - Choosing which CRT to link to
+https://github.com/rust-lang/rfcs/pull/1721 - Enable customizing the linkage of a platform's C runtime
+https://github.com/rust-lang/rust/issues/36710 - link: failed to static link to c++ library when global variable is used
+https://github.com/rust-lang/rust/issues/37406 - Tracking issue for customizing CRT linkage
+https://github.com/rust-lang/rust/pull/37545 - rustc: Implement #[link(cfg(..))] and crt-static
+https://github.com/rust-lang/rust/pull/38075 - x86_64-musl: allow building dylibs with -crt-static
+https://github.com/rust-lang/rust/issues/39998 - A new compiler flag: "link everything statically or die, dammit!"
+https://github.com/rust-lang/rust/pull/40113 - Support dynamically-linked and/or native musl targets
+https://internals.rust-lang.org/t/refining-cross-platform-crt-static-semantics/5085 - Refining cross-platform crt-static semantics
+https://github.com/rust-lang/rust/pull/50105 - Use the correct crt*.o files when linking musl targets
+https://github.com/rust-lang/rust/pull/50709 - Revert #50105 until regression is fixed
+https://github.com/rust-lang/rust/pull/51063 - Fix building rustc on and for musl hosts
+https://github.com/rust-lang/rust/issues/53968 - static-pie for musl target (remove crt1.o)
https://github.com/rust-lang/rust/pull/55566 - Require static native libraries when linking static executables
https://github.com/rust-lang/rust/issues/59302 - Tracking issue for musl host toolchain
+https://github.com/rust-lang/rust/issues/64547 - mips-linux-musleab is broken again because it uses the wrong crt for static pie
+https://github.com/rust-lang/rust/issues/65447 - Statically link against glibc
https://github.com/rust-lang/rust/issues/65760 - musl staticlib builds include all of the musl symbols
https://github.com/rust-lang/rust/pull/69519 - Don't use static crt by default when build proc-macro
https://github.com/rust-lang/rust/issues/70693 - RFE: x86_64-unknown-linux-musl `static-pie` target for ASLR
+ https://github.com/rust-lang/rust/pull/71586 - rustc-book: Document `-C target-feature=+crt-static`
+ https://github.com/rust-lang/rust/issues/71647 - `rustc` should prefer statically linking native dependencies with unspecified kind if `crt-static` is enabled
+ https://github.com/rust-lang/rust/issues/71651 - Enabling `+crt-static` in a blanket way breaks dynamic libraries including proc macros
+ https://github.com/rust-lang/rust/pull/71804 - linker: Support `-static-pie` and `-static -shared`
https://github.com/rust-lang/cargo/issues/7563 - cannot produce proc-macro when `--target` is set on musl host toolchain
https://gcc.gnu.org/legacy-ml/gcc/2015-06/msg00008.html - Static PIE support in GCC
https://www.openwall.com/lists/musl/2012/12/08/2 - static linking and dlopen
https://www.openwall.com/lists/musl/2016/07/14/1 - Regarding whole-archive linking libc.a into a shared lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment