Blame SOURCES/rh1649664-awt2dlibraries_compiled_with_no_strict_overflow.patch

2d54fe
diff --git openjdk.orig/jdk/make/lib/Awt2dLibraries.gmk openjdk/jdk/make/lib/Awt2dLibraries.gmk
2d54fe
--- openjdk.orig/jdk/make/lib/Awt2dLibraries.gmk
2d54fe
+++ openjdk/jdk/make/lib/Awt2dLibraries.gmk
2d54fe
@@ -891,6 +891,12 @@
2d54fe
   BUILD_LIBFONTMANAGER_ExtensionSubtables.cpp_CXXFLAGS := -fno-strict-aliasing
2d54fe
 endif
2d54fe
 
2d54fe
+# Turn off strict overflow with GCC for IndicRearrangementProcessor.cpp
2d54fe
+ifeq ($(OPENJDK_TARGET_OS), linux)
2d54fe
+  BUILD_LIBFONTMANAGER_IndicRearrangementProcessor.cpp_CXXFLAGS := -fno-strict-overflow
2d54fe
+  BUILD_LIBFONTMANAGER_IndicRearrangementProcessor2.cpp_CXXFLAGS := -fno-strict-overflow
2d54fe
+endif
2d54fe
+
2d54fe
 # LDFLAGS clarification:
2d54fe
 #   Filter relevant linker flags disallowing unresolved symbols as we cannot
2d54fe
 #   build-time decide to which library to link against (libawt_headless or