diff options
-rw-r--r-- | community/php7/APKBUILD | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/community/php7/APKBUILD b/community/php7/APKBUILD index 18cc0a22691..17d78b23fdd 100644 --- a/community/php7/APKBUILD +++ b/community/php7/APKBUILD @@ -26,7 +26,7 @@ pkgname=php7 _pkgreal=php pkgver=7.4.15 -pkgrel=0 +pkgrel=1 _apiver=20190902 _suffix=${pkgname#php} # Is this package the default (latest) PHP version? @@ -275,9 +275,11 @@ prepare() { # * gd-jis-conv breaks any non-latin font rendering (vakartel). # * libxml cannot be build as shared. # * -D_LARGEFILE_SOURCE and -D_FILE_OFFSET_BITS=64 (https://www.php.net/manual/en/intro.filesystem.php andypost) +# * -O2 optimize for apps usage (andypost) _build() { - export CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" - export CXXFLAGS="$CXXFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" + local common_flags="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" + export CFLAGS="${CFLAGS/-Os/-O2} $common_flags" + export CXXFLAGS="${CXXFLAGS/-Os/-O2} $common_flags" local without_pcre_jit [ "$CARCH" = "s390x" ] && without_pcre_jit="--without-pcre-jit" |