Actions
Bug #15263
closedBuild breaks when -O0 passed to do_autogen.sh
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
When building with -O0 passed into do_autogen.sh, the compiler ultimately begins warning of FORTIFY_SOURCE being set and being incompatibly with -O0.
Unsetting FORTIFY_SOURCE in CFLAGS/CXXFLAGS via do_autogen.sh is not enough. It appears that src/Makefile-env.am forces HARDENING_CFLAGS undre an "if LINUX" conditional.
It seems necessary to disable HARDENING_CFLAGS when -O0 is used (either automatically, or knowingly by the user).
Updated by Kefu Chai about 8 years ago
- Status changed from New to Fix Under Review
Updated by Greg Farnum about 7 years ago
- Status changed from Fix Under Review to Resolved
Actions