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

Beta Branch update inc/php_configure.inc for PHP_LTO, GCC 7 & 8 compatibility

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

  1. eva2000

    eva2000 Administrator Staff Member

    33,664
    7,453
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,458
    Local Time:
    6:25 AM
    Nginx 1.13.x
    MariaDB 5.5
    update inc/php_configure.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...

    123.09beta01 branch
     
..