Blame SOURCES/rh1649664-awt2dlibraries_compiled_with_no_strict_overflow.patch

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