summaryrefslogtreecommitdiffstats
path: root/recipes-core/openjdk/patches-openjdk-7/icedtea-crosscompile-fix.patch
diff options
context:
space:
mode:
authorRichard Leitner <richard.leitner@skidata.com>2017-04-26 15:39:12 +0200
committerMaxin B. John <maxin.john@intel.com>2017-05-29 13:52:41 +0300
commit65041a6c16a11ca187734323177591e8fd09f2af (patch)
tree6c8f9384b7c37b81726bde91d3046160f9db2d57 /recipes-core/openjdk/patches-openjdk-7/icedtea-crosscompile-fix.patch
parent638680e2616a030e92d9577d89c2b5c907d479f2 (diff)
downloadmeta-java-65041a6c16a11ca187734323177591e8fd09f2af.tar.gz
openjdk-7: fix compile errors with current poky master (gcc6)
Using the current poky master openjdk-7 wasn't buildable. This patch fixes those problems by adding three more patches to openjdk-7. These patches basically add/fix GCC6 support. Furthermore the LDFLAGS_HASH_STYLE variable (which was removed by the icedtea-crosscompile-fix.patch) is re-introduced and set to "both" for compatibility reasons. Following two patches were originally written by Abdur Rehman and taken from meta-mentor [1]: icedtea-flags-to-compile-with-GCC-6.patch icedtea-specify-overloaded-variant-of-fmod.patch [1] https://github.com/MentorEmbedded/meta-mentor Signed-off-by: Richard Leitner <richard.leitner@skidata.com> Signed-off-by: Maxin B. John <maxin.john@intel.com>
Diffstat (limited to 'recipes-core/openjdk/patches-openjdk-7/icedtea-crosscompile-fix.patch')
-rw-r--r--recipes-core/openjdk/patches-openjdk-7/icedtea-crosscompile-fix.patch3
1 files changed, 2 insertions, 1 deletions
diff --git a/recipes-core/openjdk/patches-openjdk-7/icedtea-crosscompile-fix.patch b/recipes-core/openjdk/patches-openjdk-7/icedtea-crosscompile-fix.patch
index e957d1e..5d93dbd 100644
--- a/recipes-core/openjdk/patches-openjdk-7/icedtea-crosscompile-fix.patch
+++ b/recipes-core/openjdk/patches-openjdk-7/icedtea-crosscompile-fix.patch
@@ -53,7 +53,7 @@ index 6fe5191..765fc6d 100644
53 53
54 # Hotspot uses very unstrict aliasing turn this optimization off 54 # Hotspot uses very unstrict aliasing turn this optimization off
55 OPT_CFLAGS += -fno-strict-aliasing 55 OPT_CFLAGS += -fno-strict-aliasing
56@@ -208,15 +208,7 @@ LFLAGS += -Wl,-relax 56@@ -208,15 +208,8 @@ LFLAGS += -Wl,-relax
57 endif 57 endif
58 58
59 # Enable linker optimization 59 # Enable linker optimization
@@ -66,6 +66,7 @@ index 6fe5191..765fc6d 100644
66- LDFLAGS_HASH_STYLE = -Wl,--hash-style=both 66- LDFLAGS_HASH_STYLE = -Wl,--hash-style=both
67-endif 67-endif
68-LFLAGS += $(LDFLAGS_HASH_STYLE) 68-LFLAGS += $(LDFLAGS_HASH_STYLE)
69+LDFLAGS_HASH_STYLE = -Wl,--hash-style=both
69+LFLAGS += $(OE_LDFLAGS) 70+LFLAGS += $(OE_LDFLAGS)
70 71
71 # Use $(MAPFLAG:FILENAME=real_file_name) to specify a map file. 72 # Use $(MAPFLAG:FILENAME=real_file_name) to specify a map file.