From b1060b2917ea64a81ba941936296cc19f8f0912a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Thu, 9 Aug 2018 16:46:20 +0200 Subject: [PATCH] openjdk: fix build with gcc-8.2.0 (i686) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jürgen Buchmüller --- srcpkgs/openjdk/template | 3 +++ 1 file changed, 3 insertions(+) diff --git a/srcpkgs/openjdk/template b/srcpkgs/openjdk/template index ce52fc70642..65d48157308 100644 --- a/srcpkgs/openjdk/template +++ b/srcpkgs/openjdk/template @@ -135,6 +135,9 @@ if [ ${XBPS_GCC_VERSION_MAJOR} -gt 5 ]; then # to produce a working program. CFLAGS+=" -Wno-error -std=c++98 -fno-delete-null-pointer-checks -fno-lifetime-dse" fi +if [ ${XBPS_GCC_VERSION_MAJOR} -gt 7 ]; then + CFLAGS+=" -Wno-deprecated-declarations -Wno-stringop-overflow -Wno-return-type" +fi post_extract() { if [ ${XBPS_GCC_VERSION_MAJOR} -gt 5 ]; then