diff options
author | Andy Postnikov <apostnikov@gmail.com> | 2021-02-06 04:58:34 +0200 |
---|---|---|
committer | Andy Postnikov <apostnikov@gmail.com> | 2021-02-08 20:31:57 +0000 |
commit | 961ffee89607cc84b7500c750f79acf9070ffb05 (patch) | |
tree | c07a0570c0985402c33927dd448dbcbf93cc34b4 | |
parent | 86c1954a779ec7530f1251b324f1467736cc6f8a (diff) | |
download | aports-961ffee89607cc84b7500c750f79acf9070ffb05.tar.gz aports-961ffee89607cc84b7500c750f79acf9070ffb05.tar.bz2 aports-961ffee89607cc84b7500c750f79acf9070ffb05.tar.xz |
community/php7: use -O2
-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 18cc0a2269..17d78b23fd 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" |