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

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.2, 3.7.1
    • Affects Version/s: None
    • Component/s: Build
    • None
    • Fully Compatible
    • v3.6
    • Storage 2017-11-13, Storage 2017-12-04

      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.

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

              Created:
              Updated:
              Resolved: