diff options
author | Koen Kooi <koen.kooi@linaro.org> | 2014-06-17 15:34:19 +0200 |
---|---|---|
committer | Koen Kooi <koen.kooi@linaro.org> | 2014-06-17 15:34:19 +0200 |
commit | 30ce3987d79a537099ae2e2acfd0778ad88d00c2 (patch) | |
tree | b140cab5c3afb60760dcfe390206b5d2995be9b6 /meta-aarch64/recipes-core/openjdk | |
parent | 7b98aa2cb96796c8fdc15b8ecc0608757d66454d (diff) |
openjdk8: pass arch flags to compiler tests
I'm not sure if this is due OE-core compiler changes or openjdk changes (or both). With this change do_configure succeeds, but the build fails in do_compile with an unrelated error.
Change-Id: I89054ae8afef20904f99b80af35c0aa58cc5e644
Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Diffstat (limited to 'meta-aarch64/recipes-core/openjdk')
-rw-r--r-- | meta-aarch64/recipes-core/openjdk/openjdk-8-common.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta-aarch64/recipes-core/openjdk/openjdk-8-common.inc b/meta-aarch64/recipes-core/openjdk/openjdk-8-common.inc index d08bcc14..b48baa4b 100644 --- a/meta-aarch64/recipes-core/openjdk/openjdk-8-common.inc +++ b/meta-aarch64/recipes-core/openjdk/openjdk-8-common.inc @@ -50,6 +50,10 @@ PRIVATE_LIBS = "\ JAVA_HOME[unexport] = "1" S="${WORKDIR}/openjdk8-aarch64-port-snapshot" +# The compiler tests in do_configure seem to drop TARGET_CC_ARCH from $CC, so add it into CFLAGS. +CFLAGS =+ "${TARGET_CC_ARCH}" +CXXFLAGS =+ "${TARGET_CC_ARCH}" + do_configure() { unset MAKE bash ./configure --with-debug-level=release --with-jvm-variants=client,server --with-sys-root=${STAGING_DIR_TARGET} --openjdk-target=${TARGET_SYS} --with-zlib=system --with-stdc++lib=dynamic --disable-ccache --disable-zip-debug-info |