aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpsykose <alice@ayaya.dev>2022-08-11 15:48:44 +0000
committerpsykose <alice@ayaya.dev>2022-08-11 17:48:44 +0200
commit58965a877134e961a19f240d459402b49c280ba4 (patch)
tree1d828e5c4ec0960c8a88571ae5082cd25390d397
parentd73a46a264289ef9fefe5287dece30e326439bde (diff)
downloadaports-58965a877134e961a19f240d459402b49c280ba4.tar.gz
aports-58965a877134e961a19f240d459402b49c280ba4.tar.bz2
aports-58965a877134e961a19f240d459402b49c280ba4.tar.xz
main/gcc: add missed -O2 into CXX/CPP FLAGS
these increase the speed of compilation by around 10% on x86_64
-rw-r--r--main/gcc/APKBUILD4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/gcc/APKBUILD b/main/gcc/APKBUILD
index 5fe0d3ce8e..67d0ff201b 100644
--- a/main/gcc/APKBUILD
+++ b/main/gcc/APKBUILD
@@ -9,7 +9,7 @@ pkgver=12.1.1_git20220630
[ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target=""
pkgname="$pkgname$_target"
-pkgrel=0
+pkgrel=1
pkgdesc="The GNU Compiler Collection"
url="https://gcc.gnu.org"
arch="all"
@@ -345,6 +345,8 @@ build() {
echo ""
export CFLAGS="$CFLAGS -O2"
+ export CXXFLAGS="$CXXFLAGS -O2"
+ export CPPFLAGS="$CPPFLAGS -O2"
mkdir -p "$_builddir"
cd "$_builddir"