Join the community today
Register Now

Master Branch Add NGX_GSPLITDWARF, PHP_GSPLITDWARF, NGXEXTRA_CCOPT & PHPEXTRA_CFLAG…

Discussion in 'Centmin Mod Github Commits' started by eva2000, Feb 1, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    28,972
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,759
    Local Time:
    11:12 PM
    Nginx 1.13.x
    MariaDB 5.5
    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...

    Centmin Mod Github Master branch

    Master branch is where most recent commits are made as at May 24, 2015.
     
    Last edited: Feb 1, 2017
  2. eva2000

    eva2000 Administrator Staff Member

    28,972
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,759
    Local Time:
    11:12 PM
    Nginx 1.13.x
    MariaDB 5.5