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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.1
    • Affects Version/s: None
    • Component/s: Build
    • Fully Compatible
    • Platforms 2017-01-23

      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".
      

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

              Created:
              Updated:
              Resolved: