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