Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upCompiler command line customization in the Rust makefile #29554
Comments
brson
added
the
A-build
label
Nov 4, 2015
bors
added a commit
that referenced
this issue
Nov 23, 2015
This comment has been minimized.
This comment has been minimized.
|
This is done. Thanks @bltavares . |
brson
closed this
Dec 28, 2015
This comment has been minimized.
This comment has been minimized.
|
You are welcome (: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
brson commentedNov 4, 2015
Distros often have a standard, custom, set of flags that should be passed to all compiler invocations when building the binaries distributed as packages for that platform (think things like hardening options). For example, Debian wants to pass
-Wl,-z,relroduring the link step.To support this, every compiler invocation in the makefile needs to include the appropriate
CFLAGS,CXXFLAGS,LDFLAGS, orRUSTFLAGSvariable. See the [Debian patch for guidance][debian-make].re https://internals.rust-lang.org/t/perfecting-rust-packaging-the-plan/2767