Skip to contentSkip to conversation

openjdk-8-common: fix inline python

PATCH New Dan McGregor 1 participant 1 message Jul 20, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 openjdk-8-common: fix inline python

From: Daniel McGregor <[email protected]>

Ensure that the inline python doensn't try to expand a non-existant variable.

---
 recipes-core/openjdk/openjdk-8-common.inc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
recipes-core/openjdk/openjdk-8-common.inc +3 -1
index 089f907..4a2af6f 100644
@@ -274,7 +274,9 @@ def version_specific_cflags(d):
     if int(version) >= 4:
         extraflags = d.getVar('FLAGS_GCC%d' % int(version), True)
 
-    return ''.join(extraflags)
+    if extraflags:
+        return ''.join(extraflags)
+    return ''
 
 CFLAGS_append = " ${@version_specific_cflags(d)}"
 CXXFLAGS_append = " ${@version_specific_cflags(d)}"
Signature · 1 line
2.9.1