diff options
author | Ming Liu <peter.x.liu@external.atlascopco.com> | 2017-04-23 08:54:56 +0200 |
---|---|---|
committer | Maxin B. John <maxin.john@intel.com> | 2017-05-29 13:46:17 +0300 |
commit | 086eb6a323e4c4a4a32feb173f98db802ea3b747 (patch) | |
tree | 9480cc7fcdd17e9be79956242ccf13f7fbf7fde7 /recipes-core/openjdk | |
parent | 4d919975d5bc5501fdebe914fd11744107ca16a7 (diff) | |
download | meta-java-086eb6a323e4c4a4a32feb173f98db802ea3b747.tar.gz |
openjdk-8-cross.inc: fix a libpng build issue
JDK/JRE fails to build for ARM NEON machines, due to a undefined symbol
in libpng, as follows:
| build/jdk/objs/libsplashscreen/pngrutil.o: In function `png_init_filter_functions':
| jdk/src/share/native/sun/awt/libpng/pngrutil.c:4002: undefined reference to `png_init_filter_functions_neon'
This is a known issue already fixed in openjdk upstream, back-port the fix.
Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Maxin B. John <maxin.john@intel.com>
Diffstat (limited to 'recipes-core/openjdk')
-rw-r--r-- | recipes-core/openjdk/openjdk-8-cross.inc | 1 | ||||
-rw-r--r-- | recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-libpng-neon-build.patch | 29 |
2 files changed, 30 insertions, 0 deletions
diff --git a/recipes-core/openjdk/openjdk-8-cross.inc b/recipes-core/openjdk/openjdk-8-cross.inc index 247438f..ad3a44d 100644 --- a/recipes-core/openjdk/openjdk-8-cross.inc +++ b/recipes-core/openjdk/openjdk-8-cross.inc | |||
@@ -13,6 +13,7 @@ PATCHES_URI_append = "\ | |||
13 | file://openjdk8-silence-d_fortify_source-warning.patch;apply=no \ | 13 | file://openjdk8-silence-d_fortify_source-warning.patch;apply=no \ |
14 | file://openjdk8-fix-zero-mode-crash.patch;apply=no \ | 14 | file://openjdk8-fix-zero-mode-crash.patch;apply=no \ |
15 | file://openjdk8-add-missing-linker-flags.patch;apply=no \ | 15 | file://openjdk8-add-missing-linker-flags.patch;apply=no \ |
16 | file://openjdk8-fix-libpng-neon-build.patch;apply=no \ | ||
16 | " | 17 | " |
17 | 18 | ||
18 | DEPENDS = "\ | 19 | DEPENDS = "\ |
diff --git a/recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-libpng-neon-build.patch b/recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-libpng-neon-build.patch new file mode 100644 index 0000000..dd6d8e3 --- /dev/null +++ b/recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-libpng-neon-build.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | # HG changeset patch | ||
2 | # User enevill | ||
3 | # Date 1430816900 0 | ||
4 | # Tue May 05 09:08:20 2015 +0000 | ||
5 | # Node ID 88d2b7d7285281d41bcff45af0dd983b0f72811e | ||
6 | # Parent 51f5501a54a62aceed6342e7ea3a9a3c67f3885d | ||
7 | 8078245: AARCH64: JDK fails to build due to undefined symbol in libpng | ||
8 | Summary: Add -DPNG_ARM_NEON_OPT=0 to LIBSPLASHSCREEN_CFLAGS flags | ||
9 | Reviewed-by: dholmes, ihse, erikj | ||
10 | |||
11 | Upstream-Status: Backport | ||
12 | |||
13 | Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com> | ||
14 | --- | ||
15 | jdk/make/lib/Awt2dLibraries.gmk | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | diff --git jdk/make/lib/Awt2dLibraries.gmk jdk/make/lib/Awt2dLibraries.gmk | ||
19 | --- jdk/make/lib/Awt2dLibraries.gmk | ||
20 | +++ jdk/make/lib/Awt2dLibraries.gmk | ||
21 | @@ -1205,7 +1205,7 @@ ifndef BUILD_HEADLESS_ONLY | ||
22 | LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/macosx/native/sun/awt/splashscreen | ||
23 | endif | ||
24 | |||
25 | - LIBSPLASHSCREEN_CFLAGS := -DSPLASHSCREEN -DPNG_NO_MMX_CODE \ | ||
26 | + LIBSPLASHSCREEN_CFLAGS := -DSPLASHSCREEN -DPNG_NO_MMX_CODE -DPNG_ARM_NEON_OPT=0 \ | ||
27 | $(foreach dir, $(LIBSPLASHSCREEN_DIRS), -I$(dir)) | ||
28 | |||
29 | ifeq ($(OPENJDK_TARGET_OS), macosx) | ||