Fix build with GCC 11
This commit is contained in:
parent
6dbf39804b
commit
6cb3a7c0c6
3 changed files with 8 additions and 5 deletions
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.0
|
pkgver = 1.21.0
|
||||||
pkgrel = 1
|
pkgrel = 2
|
||||||
url = https://nginx.org
|
url = https://nginx.org
|
||||||
install = nginx.install
|
install = nginx.install
|
||||||
arch = i686
|
arch = i686
|
||||||
|
|
7
.gitignore
vendored
7
.gitignore
vendored
|
@ -1,8 +1,11 @@
|
||||||
pkg/
|
pkg/
|
||||||
src/
|
src/
|
||||||
|
nginx-*/
|
||||||
|
boringssl/
|
||||||
|
|
||||||
*.pkg*
|
*.pkg*
|
||||||
*.tar*
|
*.tar*
|
||||||
|
|
||||||
nginx-*/
|
testing/
|
||||||
boringssl/
|
|
||||||
|
.dockerignore
|
||||||
|
|
4
PKGBUILD
4
PKGBUILD
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
pkgname=nginx-quic
|
pkgname=nginx-quic
|
||||||
pkgver=1.21.0
|
pkgver=1.21.0
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
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'
|
||||||
|
@ -86,7 +86,7 @@ build() {
|
||||||
export CXXFLAGS=${CXXFLAGS/-D_FORTIFY_SOURCE=[1-9]/-D_FORTIFY_SOURCE=0}
|
export CXXFLAGS=${CXXFLAGS/-D_FORTIFY_SOURCE=[1-9]/-D_FORTIFY_SOURCE=0}
|
||||||
|
|
||||||
export CXXFLAGS="$CXXFLAGS -fPIC"
|
export CXXFLAGS="$CXXFLAGS -fPIC"
|
||||||
export CFLAGS="$CFLAGS -fPIC"
|
export CFLAGS="$CFLAGS -fPIC -Wno-stringop-overflow -Wno-array-parameter"
|
||||||
|
|
||||||
cd ${srcdir}/boringssl
|
cd ${srcdir}/boringssl
|
||||||
mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release ../ && make
|
mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release ../ && make
|
||||||
|
|
Loading…
Reference in a new issue