diff options
-rw-r--r-- | recipes-core/openjdk/openjdk-8-common.inc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/recipes-core/openjdk/openjdk-8-common.inc b/recipes-core/openjdk/openjdk-8-common.inc index 089f907..7ad802a 100644 --- a/recipes-core/openjdk/openjdk-8-common.inc +++ b/recipes-core/openjdk/openjdk-8-common.inc | |||
@@ -271,10 +271,8 @@ def version_specific_cflags(d): | |||
271 | # doesn't work anyway. | 271 | # doesn't work anyway. |
272 | version = d.getVar('GCCVERSION', expand=True)[0] | 272 | version = d.getVar('GCCVERSION', expand=True)[0] |
273 | 273 | ||
274 | if int(version) >= 4: | 274 | extraflags = d.getVar('FLAGS_GCC%d' % int(version), True) or '' |
275 | extraflags = d.getVar('FLAGS_GCC%d' % int(version), True) | 275 | return extraflags |
276 | |||
277 | return ''.join(extraflags) | ||
278 | 276 | ||
279 | CFLAGS_append = " ${@version_specific_cflags(d)}" | 277 | CFLAGS_append = " ${@version_specific_cflags(d)}" |
280 | CXXFLAGS_append = " ${@version_specific_cflags(d)}" | 278 | CXXFLAGS_append = " ${@version_specific_cflags(d)}" |