The new way breaks building for us. This attached patch restores old
method of setting cflags so building works.
commit ff2ff83c0387a93599743e89c9d2d2367ca41454
Author: Kevron Rees <[email protected]>
Date: Thu Jul 7 12:42:33 2016 -0700
[icetea/openjdk] revert to old method of setting CFLAGS
New method seems to break building -as if build system is ignoring
the new flags. The new and old methods can work together.
Signed-off-by: Kevron Rees <[email protected]>
diff --git a/recipes-core/openjdk/openjdk-8-cross.inc b/recipes-core/openjdk/openjdk-8-cross.inc
index 11e94ce..662c63f 100644
--- a/recipes-core/openjdk/openjdk-8-cross.inc
+++ b/recipes-core/openjdk/openjdk-8-cross.inc
@@ -84,6 +84,10 @@ export MFLAGS="${@jdk_make_options(d)} MAKE_VERBOSE=y QUIETLY= VERBOSE=-s LOG_LE
BUILD_LD="${BUILD_CCLD}"
EXTRA_OEMAKE_append = '\
+ OE_CFLAGS="${CFLAGS}" \
+ OE_CPPFLAGS="${CPPFLAGS}" \
+ OE_CXXFLAGS="${CXXFLAGS}" \
+ OE_LDFLAGS="${LDFLAGS}" \
${@jdk_make_options(d)} \
ALT_SDT_H="${STAGING_INCDIR}" \
ALT_CUPS_HEADERS_PATH="${STAGING_INCDIR}" \
diff --git a/recipes-core/openjdk/openjdk-8-native.inc b/recipes-core/openjdk/openjdk-8-native.inc
index 91080d2..f8a2ad1 100644
--- a/recipes-core/openjdk/openjdk-8-native.inc
+++ b/recipes-core/openjdk/openjdk-8-native.inc
@@ -41,6 +41,10 @@ export MAKE_VERBOSE = "y"
export MFLAGS="${@jdk_make_options(d)} MAKE_VERBOSE=y QUIETLY= VERBOSE=-s LOG_LEVEL=trace"
EXTRA_OEMAKE_append = ' \
+ OE_CFLAGS="${CFLAGS}" \
+ OE_CPPFLAGS="${CPPFLAGS}" \
+ OE_CXXFLAGS="${CXXFLAGS}" \
+ OE_LDFLAGS="${LDFLAGS}" \
${@jdk_make_options(d)} \
MAKE_VERBOSE=y VERBOSE=-s LOG_LEVEL=trace \
QUIETLY= \
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel