compiling with opt off should turn off runtime hardening

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Matt Cotter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: