8209115: adjust libsplashscreen linux ppc64le builds for easier libpng update
authormbaesken
Fri, 10 Aug 2018 09:16:10 +0200
changeset 51387 9fe4fc157f4e
parent 51386 aed534740851
child 51388 0dcd27526967
8209115: adjust libsplashscreen linux ppc64le builds for easier libpng update Reviewed-by: prr, dholmes
make/lib/Awt2dLibraries.gmk
src/java.desktop/share/native/libsplashscreen/libpng/pngpriv.h
--- a/make/lib/Awt2dLibraries.gmk	Mon Aug 13 04:02:51 2018 -0700
+++ b/make/lib/Awt2dLibraries.gmk	Fri Aug 10 09:16:10 2018 +0200
@@ -796,6 +796,12 @@
 
   LIBSPLASHSCREEN_CFLAGS += -DSPLASHSCREEN -DPNG_NO_MMX_CODE -DPNG_ARM_NEON_OPT=0
 
+  ifeq ($(OPENJDK_TARGET_OS), linux)
+    ifeq ($(OPENJDK_TARGET_CPU_ARCH), ppc)
+      LIBSPLASHSCREEN_CFLAGS += -DPNG_POWERPC_VSX_OPT=0
+    endif
+  endif
+
   ifeq ($(OPENJDK_TARGET_OS), macosx)
     LIBSPLASHSCREEN_CFLAGS += -DWITH_MACOSX
 
--- a/src/java.desktop/share/native/libsplashscreen/libpng/pngpriv.h	Mon Aug 13 04:02:51 2018 -0700
+++ b/src/java.desktop/share/native/libsplashscreen/libpng/pngpriv.h	Fri Aug 10 09:16:10 2018 +0200
@@ -290,13 +290,10 @@
 #  endif
 #endif /* PNG_MIPS_MSA_OPT > 0 */
 
-#ifdef PNG_POWERPC_VSX_API_SUPPORTED
 #if PNG_POWERPC_VSX_OPT > 0
 #  define PNG_FILTER_OPTIMIZATIONS png_init_filter_functions_vsx
 #  define PNG_POWERPC_VSX_IMPLEMENTATION 1
 #endif
-#endif
-
 
 /* Is this a build of a DLL where compilation of the object modules requires
  * different preprocessor settings to those required for a simple library?  If