Automatically use the gold linker if the compiler honors -fuse-ld

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Build
    • Fully Compatible
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The gold linker is faster and better than the binutils linker, but most toolchains don't use it by default, and most system installations don't use it by default. However, modern compilers offer an -fuse-ld flag, that can be used to select the gold linker by saying -fuse-ld=gold.

      We should test for the ability to use this flag at configure time, and always use gold if available.

            Assignee:
            Unassigned
            Reporter:
            Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: