[oe] [meta-java][PATCH v2 2/2] openjdk-8-release-102b14.inc: Ignore deprecation
Erkka Kääriä
erkka.kaaria at intel.com
Mon Aug 15 09:36:20 UTC 2016
readdir_r has been deprecated since glibc 2.24. As openjdk uses this
function, a warning is generated during build that gets turned into
an error when -Werror is used.
While the readdir function is suggested as an replacement, it has
slightly different API. The warning is ignored instead to prevent any
unexpected breakage from patching the offending functions.
Signed-off-by: Erkka Kääriä <erkka.kaaria at intel.com>
---
recipes-core/openjdk/openjdk-8-release-102b14.inc | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/recipes-core/openjdk/openjdk-8-release-102b14.inc b/recipes-core/openjdk/openjdk-8-release-102b14.inc
index c9f62ff..fdeb771 100644
--- a/recipes-core/openjdk/openjdk-8-release-102b14.inc
+++ b/recipes-core/openjdk/openjdk-8-release-102b14.inc
@@ -15,6 +15,10 @@ BUILD_DIR_ECJ = "openjdk.build-ecj"
# Force arm mode for now
ARM_INSTRUCTION_SET_armv4t = "ARM"
+# readdir_r was deprecated in glibc-2.24. Ignore the error for now
+# NOTE: When updating the recipe, please check if this is still needed
+CFLAGS_append = " -Wno-error=deprecated-declarations"
+
# Enable zero mode for arm based builds, as normal hotspot fails to build
PACKAGECONFIG_append_arm = " zero"
--
2.7.4
---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki
Business Identity Code: 0357606 - 4
Domiciled in Helsinki
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
More information about the Openembedded-devel
mailing list