I4TLTE: fix makes failure when gcc version is lower than 8

This commit is contained in:
eapen 2022-02-14 16:21:59 +08:00
parent ba327b312f
commit 2555a166a0
2 changed files with 8 additions and 3 deletions

View File

@ -2,12 +2,14 @@ diff --git a/hotspot/make/linux/makefiles/adlc.make b/hotspot/make/linux/makefil
index 92b8b9b3..a24f9184 100644
--- a/hotspot/make/linux/makefiles/adlc.make
+++ b/hotspot/make/linux/makefiles/adlc.make
@@ -64,6 +64,9 @@ CXXFLAGS = $(SYSDEFS) $(INCLUDES)
@@ -64,6 +64,11 @@ CXXFLAGS = $(SYSDEFS) $(INCLUDES)
# Force assertions on.
CXXFLAGS += -DASSERT
+# Introduced in GCC 8.X
+CXXFLAGS += -Wno-error=stringop-overflow=
+ifneq "$(shell expr \( $(CC_VER_MAJOR) \>= 8 \))" "0"
+ CXXFLAGS += -Wno-error=stringop-overflow=
+endif
+
# CFLAGS_WARN holds compiler options to suppress/enable warnings.
# Compiler warnings are treated as errors

View File

@ -916,7 +916,7 @@ Provides: java-%{javaver}-%{origin}-accessibility%{?1} = %{epoch}:%{version}-%{r
Name: java-%{javaver}-%{origin}
Version: %{javaver}.%{updatever}.%{buildver}
Release: 0
Release: 1
# java-1.5.0-ibm from jpackage.org set Epoch to 1 for unknown reasons
# and this change was brought into RHEL-4. java-1.5.0-ibm packages
# also included the epoch in their virtual provides. This created a
@ -2209,6 +2209,9 @@ require "copy_jdk_configs.lua"
%endif
%changelog
* Tue Feb 15 2022 eapen <zhangyipeng7@huawei.com> - 1:1.8.0.322-b06.1
- fix makes failure when gcc version is lower than 8
* Thu Feb 10 2022 eapen <zhangyipeng7@huawei.com> - 1:1.8.0.322-b06.0
- upgrade to 8u322-b06(ga)
- modified fast-serializer-jdk8.patch to adopt openjdk