Add -Wno-array-bounds CFLAG to unbreak build with GCC 12.1
This commit is contained in:
parent
b37728f1be
commit
809d821dfa
2
.SRCINFO
2
.SRCINFO
|
@ -1,7 +1,7 @@
|
||||||
pkgbase = nginx-quic
|
pkgbase = nginx-quic
|
||||||
pkgdesc = Lightweight HTTP server and IMAP/POP3 proxy server, HTTP/3 QUIC branch
|
pkgdesc = Lightweight HTTP server and IMAP/POP3 proxy server, HTTP/3 QUIC branch
|
||||||
pkgver = 1.21.6
|
pkgver = 1.21.6
|
||||||
pkgrel = 2
|
pkgrel = 3
|
||||||
url = https://nginx.org
|
url = https://nginx.org
|
||||||
install = nginx.install
|
install = nginx.install
|
||||||
arch = i686
|
arch = i686
|
||||||
|
|
5
PKGBUILD
5
PKGBUILD
|
@ -8,7 +8,7 @@ _pkgbase=nginx
|
||||||
pkgbase=nginx-quic
|
pkgbase=nginx-quic
|
||||||
pkgname=(nginx-quic nginx-quic-src)
|
pkgname=(nginx-quic nginx-quic-src)
|
||||||
pkgver=1.21.6
|
pkgver=1.21.6
|
||||||
pkgrel=2
|
pkgrel=3
|
||||||
pkgdesc='Lightweight HTTP server and IMAP/POP3 proxy server, HTTP/3 QUIC branch'
|
pkgdesc='Lightweight HTTP server and IMAP/POP3 proxy server, HTTP/3 QUIC branch'
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
url='https://nginx.org'
|
url='https://nginx.org'
|
||||||
|
@ -88,7 +88,8 @@ build() {
|
||||||
|
|
||||||
export CXXFLAGS="$CXXFLAGS -fPIC"
|
export CXXFLAGS="$CXXFLAGS -fPIC"
|
||||||
# Disable some warnings that make Boringssl fail to compile due to a forced -Werror in CMakeLists.txt
|
# Disable some warnings that make Boringssl fail to compile due to a forced -Werror in CMakeLists.txt
|
||||||
export CFLAGS="$CFLAGS -fPIC -Wno-stringop-overflow -Wno-array-parameter"
|
# -Wno-array-bounds: 2022-05-21 for compatiblity with GCC 12.1 (https://bugs.chromium.org/p/boringssl/issues/detail?id=492&sort=-modified)
|
||||||
|
export CFLAGS="$CFLAGS -fPIC -Wno-stringop-overflow -Wno-array-parameter -Wno-array-bounds"
|
||||||
|
|
||||||
cd ${srcdir}/boringssl
|
cd ${srcdir}/boringssl
|
||||||
mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release ../ && make crypto ssl
|
mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release ../ && make crypto ssl
|
||||||
|
|
Loading…
Reference in New Issue