# HG changeset patch # User mbaesken # Date 1533885370 -7200 # Node ID 9fe4fc157f4e41bb94b03f294b0c6b14111f3278 # Parent aed534740851a96d92a3fdadfb32359ebcd2c60c 8209115: adjust libsplashscreen linux ppc64le builds for easier libpng update Reviewed-by: prr, dholmes diff -r aed534740851 -r 9fe4fc157f4e make/lib/Awt2dLibraries.gmk --- 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 diff -r aed534740851 -r 9fe4fc157f4e src/java.desktop/share/native/libsplashscreen/libpng/pngpriv.h --- 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