Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-24599

compiling with opt off should turn off runtime hardening

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible

      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)
          ^
      

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            matt.cotter Matt Cotter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: