r25851: Move system-specific ldflags checks to libreplace so they can be used by...