Discover Centmin Mod today
Register Now

Beta Branch add NGX_LDGOLD & NGXEXTRA_LDOPT variable for Nginx compile

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

  1. eva2000

    eva2000 Administrator Staff Member

    55,811
    12,272
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,858
    Local Time:
    12:43 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    add NGX_LDGOLD & NGXEXTRA_LDOPT variable for Nginx compile


    In 123.009beta01+ and higher, added persistent config file /etc/centminmod/custom_config.inc support for NGXEXTRA_LDOPT variable to be able to insert additional LDFLAGS into Nginx --with-ld-opt i.e. using ld.gold linker instead of ld.bfd via -fuse-ld=gold. You can also use persistent config file to enable ld.gold via NGX_LDGOLD='y' variable prior to Nginx compile time. It's only supported in clang 3.4.2, and GCC and not custom clang 4.0 compile as by default LLVMgold.so is not compiled to support ld.gold. Set to only work with GCC versions =>4.8.5

    Continue reading...

    123.09beta01 branch
     
  2. eva2000

    eva2000 Administrator Staff Member

    55,811
    12,272
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,858
    Local Time:
    12:43 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    @Revenge added Nginx support for using ld.gold linker for clang 3.4.2 and GCC via NGX_LDGOLD='y' variable which is disabled by default.

    Example for persistent /etc/centminmod/custom_config.inc config file options to enable GCC 5.3.1 + gsplit-dwarf + ld.gold linker
    Code (Text):
    NGX_LDGOLD='y'
    NGX_GSPLITDWARF='y'
    PHP_GSPLITDWARF='y'
    CLANG='n'
    NGINX_DEVTOOLSETGCC='y'