summaryrefslogtreecommitdiffstats
path: root/recipes-core/openjdk/openjdk-6-6b32/icedtea-zero-hotspotfix.patch
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2014-12-17 11:38:12 -0200
committerOtavio Salvador <otavio@ossystems.com.br>2014-12-17 11:38:12 -0200
commit12a0b10b35b1829eec11ea653af53d127a8b6fd1 (patch)
treefe646688d88d97dc03a587b13e93200d14ce2ad5 /recipes-core/openjdk/openjdk-6-6b32/icedtea-zero-hotspotfix.patch
parent219c6bfc9ae9456e06b08e1cc49c83060f5196d2 (diff)
parentafe557fbe78e799b78ccb44567bbff71c421d3f2 (diff)
downloadmeta-java-12a0b10b35b1829eec11ea653af53d127a8b6fd1.tar.gz
Merge branch 'yocto_1.8' of https://github.com/mindrunner/meta-java into pending
* 'yocto_1.8' of https://github.com/mindrunner/meta-java: openjdk-7: inherit pkgconfig ecj: fix unpackpost task openjdk: add pkgconfig support README: minor fixes README: update openjdk6 to the latest icedtea version openjdk6: add version 1.13.4 jamvm: update git url to sourceforge while berlios is gone java-test-image: add jamvm, cacao and classpath jamvm: update git version to ebd11bde0a97b57f0d18938c6b65468d3c932719 jamvm: add inherit pkgconfig README: update for icedtea version 1.12.8 cacao: fix target compilation and packaging openjdk-common.inc: fix qemu usage openjdk6: update icedtea 1.12 to version 1.12.8 libmatthew: Remove the dummy jar symlink openjdk-7-release-25b30.inc: add patch to fix hotstop build openjdk-7-release-25b30.inc: move nio patch to main section. openjdk-7-25b30: Forward port ppc patches
Diffstat (limited to 'recipes-core/openjdk/openjdk-6-6b32/icedtea-zero-hotspotfix.patch')
-rw-r--r--recipes-core/openjdk/openjdk-6-6b32/icedtea-zero-hotspotfix.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/recipes-core/openjdk/openjdk-6-6b32/icedtea-zero-hotspotfix.patch b/recipes-core/openjdk/openjdk-6-6b32/icedtea-zero-hotspotfix.patch
new file mode 100644
index 0000000..91ace0e
--- /dev/null
+++ b/recipes-core/openjdk/openjdk-6-6b32/icedtea-zero-hotspotfix.patch
@@ -0,0 +1,41 @@
1diff --git openjdk/hotspot/make/linux/makefiles/zeroshark.make openjdk/hotspot/make/linux/makefiles/zeroshark.make
2index c2a1484..f460d85 100644
3--- openjdk/hotspot/make/linux/makefiles/zeroshark.make
4+++ openjdk/hotspot/make/linux/makefiles/zeroshark.make
5@@ -32,13 +32,20 @@ Obj_Files += cppInterpreter_arm.o
6 Obj_Files += thumb2.o
7
8 CFLAGS += -DHOTSPOT_ASM
9+CCFLAGS += -DHOTSPOT_ASM
10+
11+ifeq ($(CROSS_COMPILATION), true)
12+ C_COMPILE_FOR_MKBC = $(CC_FOR_BUILD)
13+else
14+ C_COMPILE_FOR_MKBC = $(C_COMPILE)
15+endif
16
17 cppInterpreter_arm.o: offsets_arm.s bytecodes_arm.s
18 thumb2.o: offsets_arm.s
19
20 offsets_arm.s: mkoffsets
21 @echo Generating assembler offsets
22- ./mkoffsets > $@
23+ $(QEMU) ./mkoffsets > $@
24
25 bytecodes_arm.s: bytecodes_arm.def mkbc
26 @echo Generating ARM assembler bytecode sequences
27@@ -46,12 +53,12 @@ bytecodes_arm.s: bytecodes_arm.def mkbc
28
29 mkbc: $(GAMMADIR)/tools/mkbc.c
30 @echo Compiling mkbc tool
31- $(CC_COMPILE) -o $@ $< $(COMPILE_DONE)
32+ $(C_COMPILE_FOR_MKBC) -o $@ $< $(COMPILE_DONE)
33
34 mkoffsets: asm_helper.cpp
35 @echo Compiling offset generator
36 $(QUIETLY) $(REMOVE_TARGET)
37- $(CC_COMPILE) $(CFLAGS) -DSTATIC_OFFSETS -o $@ $< $(COMPILE_DONE)
38+ $(CC_COMPILE) $(CFLAGS) -static -DSTATIC_OFFSETS -o $@ $< $(COMPILE_DONE)
39
40 endif
41