Skip to content

Commit 4af1565

Browse files
committed
Unset _FORTIFY_SOURCE before setting it to fix error that it is being
redefined.
1 parent e482ea5 commit 4af1565

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mbedtls-sys/build/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ impl BuildConfig {
9999
let mut cflags = vec![];
100100
if FEATURES.have_platform_component("c_compiler", "freestanding") {
101101
cflags.push("-fno-builtin".into());
102+
cflags.push("-U_FORTIFY_SOURCE".into());
102103
cflags.push("-D_FORTIFY_SOURCE=0".into());
103104
cflags.push("-fno-stack-protector".into());
104105
}

0 commit comments

Comments
 (0)