diff options
Diffstat (limited to 'recipes-core/openjdk/openjdk-7-03b21/fix_hotspot_crosscompile.patch')
-rw-r--r-- | recipes-core/openjdk/openjdk-7-03b21/fix_hotspot_crosscompile.patch | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/recipes-core/openjdk/openjdk-7-03b21/fix_hotspot_crosscompile.patch b/recipes-core/openjdk/openjdk-7-03b21/fix_hotspot_crosscompile.patch new file mode 100644 index 0000000..8d2d045 --- /dev/null +++ b/recipes-core/openjdk/openjdk-7-03b21/fix_hotspot_crosscompile.patch | |||
@@ -0,0 +1,51 @@ | |||
1 | Index: icedtea-2.1/acinclude.m4 | ||
2 | =================================================================== | ||
3 | --- icedtea-2.1.orig/acinclude.m4 | ||
4 | +++ icedtea-2.1/acinclude.m4 | ||
5 | @@ -909,6 +909,21 @@ AC_DEFUN([IT_WITH_PROJECT], | ||
6 | AM_CONDITIONAL([USE_JDK7], test x"${project}" = "xjdk7") | ||
7 | ]) | ||
8 | |||
9 | +AC_DEFUN([AC_CHECK_WITH_CC_FOR_BUILD], | ||
10 | +[ | ||
11 | + AC_MSG_CHECKING(for compiler used for subsidiary programs) | ||
12 | + AC_ARG_WITH([cc-for-build], | ||
13 | + [AS_HELP_STRING(--with-cc-for-build,specify the compiler for subsidiary (helper) programs)], | ||
14 | + [ | ||
15 | + CC_FOR_BUILD="${withval}" | ||
16 | + ], | ||
17 | + [ | ||
18 | + CC_FOR_BUILD="\$(CC)" | ||
19 | + ]) | ||
20 | + AC_MSG_RESULT(${CC_FOR_BUILD}) | ||
21 | + AC_SUBST(CC_FOR_BUILD) | ||
22 | +]) | ||
23 | + | ||
24 | AC_DEFUN([IT_WITH_GCJ], | ||
25 | [ | ||
26 | AC_MSG_CHECKING([whether to compile ecj natively]) | ||
27 | Index: icedtea-2.1/configure.ac | ||
28 | =================================================================== | ||
29 | --- icedtea-2.1.orig/configure.ac | ||
30 | +++ icedtea-2.1/configure.ac | ||
31 | @@ -18,6 +18,8 @@ AC_PREFIX_DEFAULT([bootstrap]) | ||
32 | AC_PROG_CC | ||
33 | AC_PROG_CXX | ||
34 | |||
35 | +AC_CHECK_WITH_CC_FOR_BUILD | ||
36 | + | ||
37 | IT_FIND_TOOL([MAKE], [make]) | ||
38 | IT_FIND_TOOL([GZIP], [gzip]) | ||
39 | IT_FIND_TOOL([ANT], [ant]) | ||
40 | Index: icedtea-2.1/Makefile.am | ||
41 | =================================================================== | ||
42 | --- icedtea-2.1.orig/Makefile.am | ||
43 | +++ icedtea-2.1/Makefile.am | ||
44 | @@ -416,6 +416,7 @@ ICEDTEA_ENV = \ | ||
45 | JAVAC="" \ | ||
46 | JAVA_HOME="" \ | ||
47 | JDK_HOME="" \ | ||
48 | + CC_FOR_BUILD="$(CC_FOR_BUILD)" \ | ||
49 | OE_CFLAGS="$(OE_CFLAGS)" \ | ||
50 | OE_CPPFLAGS="$(OE_CPPFLAGS)" \ | ||
51 | OE_CXXFLAGS="$(OE_CXXFLAGS)" \ | ||