From: Ting Liu <[email protected]>

set CROSS_COMPILE_ARCH which will be checked before run gamma test.

Fix the below issue:
| make[6]: Leaving directory 
`.../openjdk-6-jre/6b32-1.13.4-r22.0/build/openjdk.build/hotspot/outputdir/linux_ppc64_zero/product'
| cd linux_ppc64_zero/product && ./test_gamma
| ./test_gamma: line 72: ./gamma: cannot execute binary file
| make[5]: *** [productzero] Error 126

Signed-off-by: Ting Liu <[email protected]>
---
 recipes-core/openjdk/openjdk-6-common.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/recipes-core/openjdk/openjdk-6-common.inc 
b/recipes-core/openjdk/openjdk-6-common.inc
index 4254c9f..7ad7097 100644
--- a/recipes-core/openjdk/openjdk-6-common.inc
+++ b/recipes-core/openjdk/openjdk-6-common.inc
@@ -167,6 +167,7 @@ EXTRA_OEMAKE += ' \
                 OE_CXXFLAGS="${TARGET_CXXFLAGS}" \
                 OE_LDFLAGS="${TARGET_LDFLAGS}" \
                 ZIPEXE="${STAGING_BINDIR_NATIVE}/zip" \
+                CROSS_COMPILE_ARCH="${JDK_ARCH}" \
                '
 
 OE_LAUNCHER_LDFLAGS = 
"-Wl,-rpath-link,${STAGING_LIBDIR}/llvm${WANT_LLVM_RELEASE} 
-Wl,-rpath,/usr/lib/llvm${WANT_LLVM_RELEASE}"
-- 
1.9.1

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Reply via email to