Welcome to Centmin Mod Community
Register Now

Beta Branch update nginx clang compile with LTO linker in 140.00beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Sep 10, 2024.

  1. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    9:29 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    update nginx clang compile with LTO linker in 140.00beta01

    - This update allows Clang to build Nginx with LTO like existing default GCC compiler does to build Nginx with LTO
    - On EL8 or EL9 OSes, for optional Clang compilations of Nginx when CLANG='y' is set, update to add LTO linker option in 2 Clang supported modes. Default to -flto=thin for Clang LTO Thin linker for better compile speed but allow end users options to set CLANG_LTO_FULL='y' for -flto full Clang LTO linker for better Nginx performance but longer compilation times and more memory usage.
    - Nginx built with LTO results in Nginx binaries that perform better and faster. Without LTO, the compiler looks at each piece (or file) of the code separately. It turns each file into a form that the computer understands (machine code) without knowing how it fits into the bigger project. When you use LTO, the compiler looks at the whole project (all the files) at once during the final linking step - allowing it to make smarter decisions on how to make the code run faster and use less memory.
    - By default Centmin Mod Nginx uses GCC compiler and already enables LTO for Nginx builds.


    Continue reading...

    140.00beta01 branch