@@ -240,6 +240,14 @@ ifeq ($(call isTargetOs, windows macosx), false)
240
240
DISABLED_WARNINGS_gcc_XRBackendNative.c := maybe-uninitialized, \
241
241
DISABLED_WARNINGS_gcc_XToolkit.c := unused-result, \
242
242
DISABLED_WARNINGS_gcc_XWindow.c := unused-function, \
243
+ DISABLED_WARNINGS_clang_aix := deprecated-non-prototype, \
244
+ DISABLED_WARNINGS_clang_aix_awt_Taskbar.c := parentheses, \
245
+ DISABLED_WARNINGS_clang_aix_OGLPaints.c := format-nonliteral, \
246
+ DISABLED_WARNINGS_clang_aix_OGLBufImgOps.c := format-nonliteral, \
247
+ DISABLED_WARNINGS_clang_aix_gtk2_interface.c := parentheses logical-op-parentheses, \
248
+ DISABLED_WARNINGS_clang_aix_gtk3_interface.c := parentheses logical-op-parentheses, \
249
+ DISABLED_WARNINGS_clang_aix_sun_awt_X11_GtkFileDialogPeer.c := parentheses, \
250
+ DISABLED_WARNINGS_clang_aix_awt_InputMethod.c := sign-compare, \
243
251
LDFLAGS := $(LDFLAGS_JDKLIB) \
244
252
$(call SET_SHARED_LIBRARY_ORIGIN) \
245
253
-L$(INSTALL_LIBRARIES_HERE), \
446
454
# Early re-canonizing has to be disabled to workaround an internal XlC compiler error
447
455
# when building libharfbuzz
448
456
ifeq ($(call isTargetOs, aix), true)
457
+ ifneq ($(TOOLCHAIN_TYPE), clang)
449
458
HARFBUZZ_CFLAGS += -qdebug=necan
459
+ endif
450
460
endif
451
461
452
462
# hb-ft.cc is not presently needed, and requires freetype 2.4.2 or later.
@@ -693,6 +703,20 @@ ifeq ($(ENABLE_HEADLESS_ONLY), false)
693
703
endif
694
704
endif
695
705
706
+ # The external libpng submitted in the jdk is a reduced version
707
+ # which does not contain .png_init_filter_functions_vsx.
708
+ # Therefore we need to disable PNG_POWERPC_VSX_OPT explicitly by setting
709
+ # it to 0. If this define is not set, it would be automatically set to 2,
710
+ # because
711
+ # "#if defined(__PPC64__) && defined(__ALTIVEC__) && defined(__VSX__)"
712
+ # expands to true. This would results in the fact that
713
+ # .png_init_filter_functions_vsx is needed in libpng.
714
+ ifeq ($(call isTargetOs, aix), true)
715
+ ifeq ($(TOOLCHAIN_TYPE), clang)
716
+ LIBSPLASHSCREEN_CFLAGS += -DPNG_POWERPC_VSX_OPT=0
717
+ endif
718
+ endif
719
+
696
720
ifeq ($(call isTargetOs, macosx), true)
697
721
LIBSPLASHSCREEN_CFLAGS += -DWITH_MACOSX
698
722
0 commit comments