In SERVER-51318, a fix to link tags was made that achieved its effects by adding expansions to ARFLAGS, but this should not have had the intended effect, since AR isn't used at link time. Investigate why this fix has the effects it does, and see if there is another way to achieve the same thing.