diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-12-17 14:31:03 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-12-17 14:31:03 +0100 |
commit | 80c16e425d79862354da8a35b4d18cecd9a3fef7 (patch) | |
tree | 2acec8421263143ef29ab06e284500893db79ed0 /php70.spec | |
parent | 03186a74d3e3d519563f04301b7b17eeb052cee9 (diff) |
PHP 7: again, build with --disable-huge-code-pages on EL-6
Diffstat (limited to 'php70.spec')
-rw-r--r-- | php70.spec | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -1096,8 +1096,14 @@ echo "d /run/php-fpm 755 root root" >php-fpm.tmpfiles # Some extensions have their own configuration file cp %{SOURCE50} 10-opcache.ini -%ifarch x86_64 %if 0%{?rhel} != 6 +cat << EOF >>10-opcache.ini + +; Enables or disables copying of PHP code (text segment) into HUGE PAGES. +; This should improve performance, but requires appropriate OS configuration. +opcache.huge_code_pages=0 +EOF +%ifarch x86_64 sed -e '/opcache.huge_code_pages/s/0/1/' -i 10-opcache.ini %endif %endif @@ -1215,6 +1221,9 @@ build --libdir=%{_libdir}/php \ --enable-pcntl \ --enable-opcache \ --enable-opcache-file \ +%if 0%{?rhel} == 6 + --disable-huge-code-pages \ +%endif --enable-phpdbg \ --with-imap=shared --with-imap-ssl \ --enable-mbstring=shared \ @@ -1359,6 +1368,9 @@ build --includedir=%{_includedir}/php-zts \ --enable-pcntl \ --enable-opcache \ --enable-opcache-file \ +%if 0%{?rhel} == 6 + --disable-huge-code-pages \ +%endif --with-imap=shared --with-imap-ssl \ --enable-mbstring=shared \ --enable-mbregex \ @@ -1971,6 +1983,9 @@ fi %changelog +* Thu Dec 17 2015 Remi Collet <remi@fedoraproject.org> 7.0.1-1.1 +- opcache: build with --disable-huge-code-pages on EL-6 + * Wed Dec 16 2015 Remi Collet <remi@fedoraproject.org> 7.0.1-1 - Update to 7.0.1 http://www.php.net/releases/7_0_1.php |