|
13 | 13 | {%- set cflags = |
14 | 14 | '-fPIC -O3 -pipe -fno-plt -fno-semantic-interposition -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffunction-sections -fdata-sections' ~ arch_flags |
15 | 15 | -%} |
16 | | -{%- set cflags = (using_gcc ? '' : '-flto ') ~ cflags -%} |
| 16 | +{%- set cflags = (using_gcc ? '' : '-flto=thin ') ~ cflags -%} |
17 | 17 | {%- set is_rhel = os in ['7', '8', '9', '10'] and type == 'rpm' -%} |
18 | 18 | {%- if using_gcc and is_rhel -%} |
19 | 19 | {%- if os == '7' or os == '8' -%} |
@@ -99,10 +99,10 @@ extra-env: |
99 | 99 | SPC_CMD_VAR_PHP_EMBED_TYPE: 'shared' |
100 | 100 | SPC_MICRO_PATCHES: |
101 | 101 | SPC_DEFAULT_C_FLAGS: "{{ cflags }}" |
102 | | - SPC_DEFAULT_CXX_FLAGS: "{{ cflags }} -fasynchronous-unwind-tables{{ using_gcc ? '' : ' -fwhole-program-vtables -fstrict-vtable-pointers -fvirtual-function-elimination' }}" |
103 | | - SPC_DEFAULT_LD_FLAGS: "-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -Wl,-z,noexecstack -Wl,--gc-sections {{ using_gcc and is_rhel ? specs_ldflags : '' }}{{ not using_gcc ? ' -flto' : '' }}" |
104 | | - SPC_CMD_VAR_PHP_MAKE_EXTRA_CFLAGS: "{{ cflags }} -g -fPIE{{ using_gcc ? '' : ' -flto'}}" |
105 | | - SPC_CMD_VAR_PHP_MAKE_EXTRA_LDFLAGS: "-Wl,--build-id=sha1 -pie -release {{ release_suffix }}{{ using_gcc ? '' : ' -flto'}}" |
| 102 | + SPC_DEFAULT_CXX_FLAGS: "{{ cflags }} -fasynchronous-unwind-tables" |
| 103 | + SPC_DEFAULT_LD_FLAGS: "-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -Wl,-z,noexecstack -Wl,--gc-sections {{ using_gcc and is_rhel ? specs_ldflags : '' }}{{ not using_gcc ? ' -flto=thin' : '' }}" |
| 104 | + SPC_CMD_VAR_PHP_MAKE_EXTRA_CFLAGS: "{{ cflags }} -g -fPIE{{ using_gcc ? '' : ' -flto=thin'}}" |
| 105 | + SPC_CMD_VAR_PHP_MAKE_EXTRA_LDFLAGS: "-Wl,--build-id=sha1 -pie -release {{ release_suffix }}{{ using_gcc ? '' : ' -flto=thin'}}" |
106 | 106 | SPC_CMD_PREFIX_PHP_CONFIGURE: "./configure --prefix= --with-valgrind=no --disable-shared --enable-static --disable-all --disable-cgi --disable-phpdbg --disable-debug --with-pic --enable-rtld-now --enable-re2c-cgoto --disable-rpath" |
107 | 107 | SPC_CMD_VAR_FRANKENPHP_XCADDY_MODULES: "--with github.com/dunglas/frankenphp/caddy --with github.com/dunglas/mercure/caddy --with github.com/dunglas/vulcain/caddy --with github.com/dunglas/caddy-cbrotli --with github.com/baldinof/caddy-supervisor" |
108 | 108 | PHP_BUILD_PROVIDER: "Static PHP <https://static-php.dev> #StandWithUkraine" |
|
0 commit comments