Commit e7e9f98
Merge #165
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 <sean.burton@cambridgequantum.com>1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
| |||
0 commit comments