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

Use --detect-odr-violation if linking with a supported linker

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.5.1
    • None
    • Build
    • Fully Compatible
    • Platforms 2017-01-23

    Description

      ODR = One definition rule. This would detect if there were two classes or functions with the same name in the same namespace even if they are never both included in the same translation unit.

      Currently this flag is only supported by gold although other linkers may have similar flags. Actual flag to be added to LINKFLAGS is:

      "-Wl,--detect-odr-violations".
      

      Attachments

        Activity

          People

            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: