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

Fix long link times on OS X by passing -no_deduplicate to the linker

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.6.2, 3.7.1
    • Build
    • None
    • Fully Compatible
    • v3.6
    • Storage 2017-11-13, Storage 2017-12-04

    Description

      Debug builds on OS X take about 45 seconds on my system to link, with the linker spending almost all of its time deduping symbols. By adding the -Wl,-no_deduplicate flag to LINKFLAGS we cut the link time to 4 seconds. Optimized builds do not seem to be affected.

      Attachments

        Activity

          People

            geert.bosch@mongodb.com Geert Bosch
            geert.bosch@mongodb.com Geert Bosch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: