summaryrefslogtreecommitdiffstats
path: root/recipes-core/openjdk/patches-openjdk-8/1010-hotspot-fix-adlc-flags.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/openjdk/patches-openjdk-8/1010-hotspot-fix-adlc-flags.patch')
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1010-hotspot-fix-adlc-flags.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/recipes-core/openjdk/patches-openjdk-8/1010-hotspot-fix-adlc-flags.patch b/recipes-core/openjdk/patches-openjdk-8/1010-hotspot-fix-adlc-flags.patch
new file mode 100644
index 0000000..03f8660
--- /dev/null
+++ b/recipes-core/openjdk/patches-openjdk-8/1010-hotspot-fix-adlc-flags.patch
@@ -0,0 +1,43 @@
1From 89408e465d92657de8c54d4622f1810c28c3d700 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Erkka=20K=C3=A4=C3=A4ri=C3=A4?= <erkka.kaaria@intel.com>
3Date: Thu, 2 Jan 2020 10:19:29 +0100
4Subject: [PATCH 1010/1012] hotspot: fix adlc flags
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9adlc is built using the native toolchain, not the crosscompiler. It however
10was incorrectly using flags meant for the crosscompiler.
11
12Upstream-Status: Inappropriate [Yocto-specific fixes]
13
14Signed-off-by: Erkka Kääriä <erkka.kaaria@intel.com>
15Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
16---
17 make/linux/makefiles/adlc.make | 10 ++++++++++
18 1 file changed, 10 insertions(+)
19
20diff --git a/hotspot/make/linux/makefiles/adlc.make b/hotspot/make/linux/makefiles/adlc.make
21index 92b8b9b39..ae0aa0082 100644
22--- a/hotspot/make/linux/makefiles/adlc.make
23+++ b/hotspot/make/linux/makefiles/adlc.make
24@@ -28,6 +28,16 @@
25
26 include $(GAMMADIR)/make/$(Platform_os_family)/makefiles/rules.make
27
28+# Yocto specific fix - remove target machine flags and replace them with
29+# build machine flags, as this part is built using the native toolchain
30+CXXFLAGS:=$(filter-out $(TARGET_CXXFLAGS),$(CXXFLAGS))
31+CFLAGS:=$(filter-out $(TARGET_CFLAGS),$(CFLAGS))
32+
33+CXXFLAGS += $(BUILD_CXXFLAGS)
34+CFLAGS += $(BUILD_CFLAGS)
35+
36+
37+
38 # #########################################################################
39
40 # OUTDIR must be the same as AD_Dir = $(GENERATED)/adfiles in top.make:
41--
422.24.1
43