Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler command line customization in the Rust makefile #29554

Closed
brson opened this Issue Nov 4, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@brson
Copy link
Contributor

brson commented Nov 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,relro during the link step.

To support this, every compiler invocation in the makefile needs to include the appropriate CFLAGS, CXXFLAGS, LDFLAGS, or RUSTFLAGS variable. See the [Debian patch for guidance][debian-make].

re https://internals.rust-lang.org/t/perfecting-rust-packaging-the-plan/2767

@brson

This comment has been minimized.

Copy link
Contributor Author

brson commented Dec 28, 2015

This is done. Thanks @bltavares .

@brson brson closed this Dec 28, 2015

@bltavares

This comment has been minimized.

Copy link
Contributor

bltavares commented Dec 28, 2015

You are welcome (:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.