• serge-sans-paille's avatar
    bpo-28015: Support LTO build with clang (GH-9908) · 5ad36f9b
    serge-sans-paille yazdı
    .o generated by clang in LTO mode actually are LLVM bitcode files, which
    leads to a few errors during configure/build step:
    
    - add lto flags to the BASECFLAGS instead of CFLAGS, as CFLAGS are used
      to build autoconf test case, and some are not compatible with clang LTO
      (they assume binary in the .o, not bitcode)
    - force llvm-ar instead of ar, as ar is not aware of .o files generated
      by clang -flto
    5ad36f9b
aclocal.m4 10.7 KB