diff options
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.patch | 41 |
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 @@ | |||
1 | diff --git openjdk/hotspot/make/linux/makefiles/zeroshark.make openjdk/hotspot/make/linux/makefiles/zeroshark.make | ||
2 | index 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 | |||