From 0f127a49696696ac48c394f84232e7f56b29fbe7 Mon Sep 17 00:00:00 2001 From: Erkka Kääriä Date: Mon, 15 Aug 2016 12:36:20 +0300 Subject: openjdk-8-release-102b14.inc: Ignore deprecation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ä Signed-off-by: Maxin B. John --- 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" -- cgit v1.2.3-54-g00ecf