build: unbreak builds with _FORTIFY_SOURCE=1#708
Conversation
Some downstream build systems allow passing custom _FORTIFY_SOURCE values and this results in conflicting compiler flags and build failures: <command-line>: error: "_FORTIFY_SOURCE" redefined So lets fix it by undefining any previous _FORTIFY_SOURCE values and then forcing _FORTIFY_SOURCE=2. Signed-off-by: Petr Štetiar <ynezz@true.cz>
|
Example of such failure https://github.com/openwrt/packages/actions/runs/5410066043/jobs/9831013719 |
|
Hm, wouldn't it be preferred to honor the environment's wishes for a specific |
I've looked at fadcc98 introducing this option and have assumed, that its desired. Would for example |
It should be seen as our desired default for release builds at this time. But I'd argue that if
I've only tested it briefly; it certainly should work. If it doesn't, then that's probably a bug. |
Ok, I agree and I'll rework it. |
build: unbreak builds with _FORTIFY_SOURCE=1 Yubico#708 Yubico@0bd31f7
Some downstream build systems allow passing custom _FORTIFY_SOURCE values and this results in conflicting compiler flags and build failures:
So lets fix it by undefining any previous _FORTIFY_SOURCE values and then forcing _FORTIFY_SOURCE=2.