diff --git a/extra/nginx-mainline/PKGBUILD b/extra/nginx-mainline/PKGBUILD index b90252447..da7c00ec0 100644 --- a/extra/nginx-mainline/PKGBUILD +++ b/extra/nginx-mainline/PKGBUILD @@ -4,7 +4,7 @@ # Contributor: Drew DeVault # ALARM: Kevin Mihelich -# - build armv7h with -fPIC +# - build armv7h and aarch64 with -fPIC pkgname=nginx-mainline pkgver=1.11.0 @@ -66,7 +66,7 @@ _mainline_flags=( build() { cd $provides-$pkgver - [[ $CARCH == "armv7h" ]] && CFLAGS+=" -fPIC" && CXXFLAGS+=" -fPIC" + [[ $CARCH == "armv7h" || $CARCH == "aarch64" ]] && CFLAGS+=" -fPIC" && CXXFLAGS+=" -fPIC" ./configure \ --prefix=/etc/nginx \ --conf-path=/etc/nginx/nginx.conf \