Blame rh1649664-awt2dlibraries_compiled_with_no_strict_overflow.patch

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