Get the most out of your Centmin Mod LEMP stack
Become a Member

Master Branch update inc/ for PHP_LTO, GCC 7 & 8 compatibility

Discussion in 'Centmin Mod Github Commits' started by eva2000, Jan 30, 2018.

  1. eva2000

    eva2000 Administrator Staff Member

    May 24, 2014
    Brisbane, Australia
    Local Time:
    4:09 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    update inc/ for PHP_LTO, GCC 7 & 8 compatibility

    - laying down some prep work for GCC 7 & 8 support in PHP compilations along with addressing PHP LTO based compile support
    - add optional GCC 8 compiler support via DEVTOOLSETEIGHT='y' for PHP compiles with PHP_PGO='y'. Disabled by default as currently PHP seems to fail to compile some of PHP extensions with GCC 8
    - add optional GCC 8 & GCC 7.2.1+ compiler support via DEVTOOLSETSEVEN='y' for PHP compiles when PHP_LTO='y' enabled. Disabled by default though depending on cpus might have performance regressions - especially with PHP_LTO='y' enabled so test and decide for yourself if you want to enable
    - rework PHP_LTO='y' for Link Time Optimization (LTO) of PHP compilations which in theory can produce faster PHP binaries but takes 2-4x times longer to compile and uses 2-4x times cpu and memory. But reality is PHP_LTO='y' has tested to be slower for PHP so only adding the routines to support LTO but is disabled by default and auto disabled if PHP_LTO='y' is set when there is less than 16 cpu threads and less than 31000 MB of memory is detected

    Continue reading...

    Centmin Mod Github Master branch

    Master branch is where most recent commits are made as at May 24, 2015.