You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
165: Unset _FORTIFY_SOURCE before setting it to fix error about redefinition r=jethrogb a=sburton84
When building for the `x86_64-fortanix-unknown-sgx` target in release mode I receive the following errors:
```
<command-line>: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>: note: this is the location of the previous definition
<command-line>: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>: note: this is the location of the previous definition
cc1: all warnings being treated as errors
```
I think these would only be warnings but `MBEDTLS_FATAL_WARNINGS` defaults to `ON` which makes them into errors.
This patch fixes this by explicitly unsetting `_FORTIFY_SOURCE` before setting it to a new value.
Co-authored-by: Sean Burton <[email protected]>
@haowqs is this issue still relevant or can be closed?
If it's still relevant to what release do you think we should map it to (mid-November, end-December, mid-February etc...)?
cfv.bin
fv_buffer
hob_buffer
The text was updated successfully, but these errors were encountered: