summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD6
2 files changed, 5 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 56332a94f7df..fc1d5e226141 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,3 @@
-# Generated by mksrcinfo v8
-# Mon May 25 01:54:46 UTC 2020
pkgbase = gcc5
pkgdesc = The GNU Compiler Collection (5.x)
pkgver = 5.5.0
diff --git a/PKGBUILD b/PKGBUILD
index 07df97c14ae3..b6d34416dd1f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -89,6 +89,9 @@ build() {
CFLAGS="${CFLAGS/-Wformat-overflow=[0-9]/}"
CXXFLAGS="${CXXFLAGS/-Wformat-overflow=[0-9]/}"
+ #CXXFLAGS+=" -std=c++14" # CXXFLAGS is ignored by later stages, can't put into CPPFLAGS which works in all stages. Used below.
+ CPPFLAGS+=" -O2 -Wno-implicit-fallthrough -Wno-expansion-to-defined -Wno-unused-result -Wno-cast-function-type -Wno-switch"
+
# The following options are one per line, mostly sorted so they are easy to diff compare to other gcc packages.
../configure \
--build="${CHOST}" \
@@ -119,7 +122,8 @@ build() {
--with-bugurl='https://bugs.archlinux.org/' \
--with-linker-hash-style='gnu' \
--with-system-zlib \
- --prefix='/usr'
+ --prefix='/usr' \
+ CXX='g++ -std=c++14'
# CXX='g++-6.3' CC='gcc-6.3'
fi