[SERVER-24599] compiling with opt off should turn off runtime hardening Created: 15/Jun/16  Updated: 15/Jun/16  Resolved: 15/Jun/16

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Matt Cotter Assignee: Andrew Morrow (Inactive)
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-24566 Debug build fails in configure Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

When compiling with opt off, but runtime hardening on (which is default), I get this error:

/usr/include/features.h:331:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^


Generated at Thu Feb 08 04:06:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.