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

Teach our SCons implementation to reiterate CFLAGS on the link line

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Build
    • None
    • Server Development Platform
    • Fully Compatible
    • Dev Platform 2021-02-22, Dev Platform 2021-03-08, Dev Platform 2021-03-22

      There are lots of places where we add flags to both the C[{C,XX}]FLAGS and [SH]LINKFLAGS, because these flags need to be present for both tasks. Generally, we do this on platforms that use clang/gcc, since there we invoke the compiler to drive the link. So flags that affect both compile and link should appear in both. It would be easier if we just always included C[{C,XX}]FLAGS on the link line, and then we wouldn't need to add the flags in two places.

            Assignee:
            backlog-server-devplatform [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: