From 3a1ac9def769a95bbc843931d3c192038ec7c382 Mon Sep 17 00:00:00 2001 From: Erkka Kääriä Date: Thu, 28 Apr 2016 12:04:12 +0300 Subject: Openjdk-8: Add -Wno-cpp to CFLAGS in certain makefiles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The security flag '-D_FORTIFY_SOURCE' requires at least -O to work, otherwise a warning is given. If CFLAGS additionally contains -Werror, this warning turns into an error. As Openjdk build system intentionally deoptimizes certains files due to potential bad codegen during optimization, build will fail when both '-D_FORTIFY_SOURCE' and '-Werror' are used. As turning the optimizations back on will likely break things, the warning is silenced instead. Signed-off-by: Erkka Kääriä Signed-off-by: Maxin B. John --- recipes-core/openjdk/openjre-8_72b05.bb | 1 + 1 file changed, 1 insertion(+) (limited to 'recipes-core/openjdk/openjre-8_72b05.bb') diff --git a/recipes-core/openjdk/openjre-8_72b05.bb b/recipes-core/openjdk/openjre-8_72b05.bb index 6d29d12..3a34848 100644 --- a/recipes-core/openjdk/openjre-8_72b05.bb +++ b/recipes-core/openjdk/openjre-8_72b05.bb @@ -9,6 +9,7 @@ PATCHES_URI_append = "\ file://openjdk8-fix-shark-build.patch;apply=no \ file://openjdk8-fix-shark-stdc++11.patch;apply=no \ file://openjdk8-use_builtin_frame_address_0_rather_than_returning_address_of_local_variable.patch;apply=no \ + file://openjdk8-silence-d_fortify_source-warning.patch;apply=no \ " do_install() { -- cgit v1.2.3-54-g00ecf