RFR: 8326587: Separate out Microsoft toolchain linking

Magnus Ihse Bursie ihse at openjdk.org
Sat Feb 24 10:02:54 UTC 2024


On Sat, 24 Feb 2024 06:20:54 GMT, Julian Waters <jwaters at openjdk.org> wrote:

> Why not reuse the AR variable for lib rather than introduce an entirely new LIB variable? 

The reason will become more apparent as I progress towards proper handling of static libs. In short, AR is not by far a 1-to-1 mapping with LIB. On non-Microsoft toolchains, we are basically going to do static linking by ld + objcopy + ar; on Windows, it's just lib. So there is nothing to be gained by pretending that lib is ar.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/17987#issuecomment-1962316021


More information about the build-dev mailing list