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

compiling with opt off should turn off runtime hardening

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • None
    • None
    • None
    • None
    • Fully Compatible

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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: