We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b35869 commit 9b96570Copy full SHA for 9b96570
aws-lc-sys/builder/cc_builder.rs
@@ -375,7 +375,8 @@ impl CcBuilder {
375
376
let compiler = if let Some(original_cflags) = optional_env_target("CFLAGS") {
377
let mut new_cflags = original_cflags.clone();
378
- new_cflags.push_str(" -O0");
+ // The `_FORTIFY_SOURCE` macro often requires optimizations to also be enabled, so unset it.
379
+ new_cflags.push_str(" -O0 -Wp,-U_FORTIFY_SOURCE");
380
set_env_for_target("CFLAGS", &new_cflags);
381
// cc-rs currently prioritizes flags provided by CFLAGS over the flags provided by the build script.
382
// The environment variables used by the compiler are set when `get_compiler` is called.
0 commit comments