-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: unbreak builds with _FORTIFY_SOURCE=1 #708
base: main
Are you sure you want to change the base?
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 <[email protected]>
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.