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

Beta Branch Add NGX_GSPLITDWARF, PHP_GSPLITDWARF, NGXEXTRA_CCOPT & PHPEXTRA_CFLAG…

Discussion in 'Centmin Mod Github Commits' started by eva2000, Jan 31, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    55,237
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,833
    Local Time:
    7:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Add NGX_GSPLITDWARF, PHP_GSPLITDWARF, NGXEXTRA_CCOPT & PHPEXTRA_CFLAGS variable to nginx/php configure

    In Centmin Mod 123.09beta01+ and higher, allow using persistent config file /etc/centminmod/custom_config.inc to insert additional Nginx --with-cc-opt flags via NGXEXTRA_CCOPT variable and PHP's CFLAGS via PHPEXTRA_CFLAGS variable https://community.centminmod.com/posts/44072/

    Example or inserting additional flags - need the space at beginning too
    Code (Text):
    NGXEXTRA_CCOPT=' -gsplit-dwarf'
    PHPEXTRA_CFLAGS=' -gsplit-dwarf'
    

    For enabling -gsplit-dwarf specifically for Nginx and PHP compilations to reduce disk i/o and memory usage of compilations and speed up compile link time
    Code (Text):
    NGX_GSPLITDWARF='y'
    PHP_GSPLITDWARF='y'
    

    It will also take into account any NGXEXTRA_CCOPT and PHPEXTRA_CFLAGS options and append to them -gsplit-dwarf flag.


    It allows expert system admins to insert other custom flags into Nginx and PHP compilations.

    Continue reading...

    123.09beta01 branch
     
  2. eva2000

    eva2000 Administrator Staff Member

    55,237
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,833
    Local Time:
    7:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+