Commit 28f2ec8
committed
arch/_common_switches.sh: append -O2 if AB_FLAGS_FTF is enabled
-D_FORTIFY_SOURCE requires optimisation (-O) and may cause build failures
if a build system passes only CPPFLAGS but not C/CXXFLAGS (i.e., Binutils
and GCC, and we are not sure if this has caused further silent failures
elsewhere).
Since it would not do much harm to pass our lowest optimisation level on
its own, pass -O2 as part of the AB_FLAGS_FTF condition.1 parent ca26893 commit 28f2ec8
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments