diff options
Diffstat (limited to 'recipes-core/openjdk/openjdk-6/fix_hotspot_crosscompile.patch')
-rw-r--r-- | recipes-core/openjdk/openjdk-6/fix_hotspot_crosscompile.patch | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/recipes-core/openjdk/openjdk-6/fix_hotspot_crosscompile.patch b/recipes-core/openjdk/openjdk-6/fix_hotspot_crosscompile.patch new file mode 100644 index 0000000..38fb191 --- /dev/null +++ b/recipes-core/openjdk/openjdk-6/fix_hotspot_crosscompile.patch | |||
@@ -0,0 +1,94 @@ | |||
1 | Index: icedtea6-1.8/Makefile.am | ||
2 | =================================================================== | ||
3 | --- icedtea6-1.8.orig/Makefile.am 2010-06-18 12:31:34.534667003 +0200 | ||
4 | +++ icedtea6-1.8/Makefile.am 2010-06-18 12:31:34.714667729 +0200 | ||
5 | @@ -488,6 +488,7 @@ | ||
6 | DEBUG_BINARIES="true" \ | ||
7 | ALT_DROPS_DIR="$(abs_top_builddir)/drops" \ | ||
8 | VERBOSE="$(VERBOSE)" \ | ||
9 | + CC_FOR_BUILD="$(CC_FOR_BUILD)" \ | ||
10 | ALT_NETX_DIST="$(abs_top_builddir)/netx.build" \ | ||
11 | ALT_LIVECONNECT_DIST="$(abs_top_builddir)/liveconnect" | ||
12 | |||
13 | Index: icedtea6-1.8/acinclude.m4 | ||
14 | =================================================================== | ||
15 | --- icedtea6-1.8.orig/acinclude.m4 2010-04-10 21:58:40.804836529 +0200 | ||
16 | +++ icedtea6-1.8/acinclude.m4 2010-06-18 12:31:34.714667729 +0200 | ||
17 | @@ -900,6 +900,21 @@ | ||
18 | AC_SUBST(ALT_CACAO_SRC_DIR) | ||
19 | ]) | ||
20 | |||
21 | +AC_DEFUN([AC_CHECK_WITH_CC_FOR_BUILD], | ||
22 | +[ | ||
23 | + AC_MSG_CHECKING(for compiler used for subsidiary programs) | ||
24 | + AC_ARG_WITH([cc-for-build], | ||
25 | + [AS_HELP_STRING(--with-cc-for-build,specify the compiler for subsidiary (helper) programs)], | ||
26 | + [ | ||
27 | + CC_FOR_BUILD="${withval}" | ||
28 | + ], | ||
29 | + [ | ||
30 | + CC_FOR_BUILD="\$(CC)" | ||
31 | + ]) | ||
32 | + AC_MSG_RESULT(${CC_FOR_BUILD}) | ||
33 | + AC_SUBST(CC_FOR_BUILD) | ||
34 | +]) | ||
35 | + | ||
36 | AC_DEFUN([AC_CHECK_WITH_GCJ], | ||
37 | [ | ||
38 | AC_MSG_CHECKING([whether to compile ecj natively]) | ||
39 | Index: icedtea6-1.8/configure.ac | ||
40 | =================================================================== | ||
41 | --- icedtea6-1.8.orig/configure.ac 2010-04-12 13:46:18.821086023 +0200 | ||
42 | +++ icedtea6-1.8/configure.ac 2010-06-18 12:31:34.724666321 +0200 | ||
43 | @@ -44,6 +44,7 @@ | ||
44 | IT_CHECK_FOR_MERCURIAL | ||
45 | IT_OBTAIN_HG_REVISIONS | ||
46 | AC_PATH_TOOL([LSB_RELEASE],[lsb_release]) | ||
47 | +AC_CHECK_WITH_CC_FOR_BUILD | ||
48 | AC_CHECK_WITH_GCJ | ||
49 | AC_CHECK_WITH_HOTSPOT_BUILD | ||
50 | AC_PATH_TOOL([LINUX32],[linux32]) | ||
51 | Index: icedtea6-1.8/ports/hotspot/make/linux/makefiles/zeroshark.make | ||
52 | =================================================================== | ||
53 | --- icedtea6-1.8.orig/ports/hotspot/make/linux/makefiles/zeroshark.make 2010-03-25 15:10:42.061085966 +0100 | ||
54 | +++ icedtea6-1.8/ports/hotspot/make/linux/makefiles/zeroshark.make 2010-06-18 12:40:42.834666505 +0200 | ||
55 | @@ -32,6 +32,13 @@ | ||
56 | Obj_Files += thumb2.o | ||
57 | |||
58 | CFLAGS += -DHOTSPOT_ASM | ||
59 | +CCFLAGS += -DHOTSPOT_ASM | ||
60 | + | ||
61 | +ifeq ($(CROSS_COMPILATION), true) | ||
62 | + C_COMPILE_FOR_MKBC = $(CC_FOR_BUILD) | ||
63 | +else | ||
64 | + C_COMPILE_FOR_MKBC = $(C_COMPILE) | ||
65 | +endif | ||
66 | |||
67 | %.o: %.S | ||
68 | @echo Assembling $< | ||
69 | @@ -43,20 +50,20 @@ | ||
70 | |||
71 | offsets_arm.s: mkoffsets | ||
72 | @echo Generating assembler offsets | ||
73 | - ./mkoffsets > $@ | ||
74 | + $(QEMU) ./mkoffsets > $@ | ||
75 | |||
76 | bytecodes_arm.s: bytecodes_arm.def mkbc | ||
77 | @echo Generatine ARM assembler bytecode sequences | ||
78 | $(CC_COMPILE) -E -x c++ - < $< | ./mkbc - $@ $(COMPILE_DONE) | ||
79 | |||
80 | -mkbc: $(GAMMADIR)/tools/mkbc.c | ||
81 | +mkbc: $(GAMMADIR)/tools/mkbc.c | ||
82 | @echo Compiling mkbc tool | ||
83 | - $(CC_COMPILE) -o $@ $< $(COMPILE_DONE) | ||
84 | + $(C_COMPILE_FOR_MKBC) -o $@ $< $(COMPILE_DONE) | ||
85 | |||
86 | -mkoffsets: asm_helper.cpp | ||
87 | +mkoffsets: asm_helper.cpp | ||
88 | @echo Compiling offset generator | ||
89 | $(QUIETLY) $(REMOVE_TARGET) | ||
90 | - $(CC_COMPILE) -DSTATIC_OFFSETS -o $@ $< $(COMPILE_DONE) | ||
91 | + $(CC_COMPILE) -static -DSTATIC_OFFSETS -o $@ $< $(COMPILE_DONE) | ||
92 | |||
93 | endif | ||
94 | |||