aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2020-12-05 22:03:50 +0200
committerAndy Postnikov <apostnikov@gmail.com>2021-02-06 02:55:38 +0000
commit6b1d88b910e56bb14fd78699af2fd34179b43fda (patch)
tree86e3a2ec5c566bbacfde227d7ef7fb75463489bb
parentad0958dc3ba5bd4ac0b3a2a23541a7902e852e5b (diff)
downloadaports-6b1d88b910e56bb14fd78699af2fd34179b43fda.tar.gz
aports-6b1d88b910e56bb14fd78699af2fd34179b43fda.tar.bz2
aports-6b1d88b910e56bb14fd78699af2fd34179b43fda.tar.xz
community/php8: use -O2
-rw-r--r--community/php8/APKBUILD7
1 files changed, 4 insertions, 3 deletions
diff --git a/community/php8/APKBUILD b/community/php8/APKBUILD
index 0fe012fcd7..62e2810422 100644
--- a/community/php8/APKBUILD
+++ b/community/php8/APKBUILD
@@ -26,7 +26,7 @@
pkgname=php8
_pkgreal=php
pkgver=8.0.2
-pkgrel=0
+pkgrel=1
_apiver=20200930
_suffix=${pkgname#php}
# Is this package the default (latest) PHP version?
@@ -209,9 +209,10 @@ 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"
+ export CFLAGS="${CFLAGS/-Os/-O2} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
+ export CXXFLAGS="${CXXFLAGS/-Os/-O2} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
local without_pcre_jit
[ "$CARCH" = "s390x" ] && without_pcre_jit="--without-pcre-jit"