From: Dan McGregor <danismostlikely@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [meta-java][PATCH] openjdk-8-common: fix inline python
Date: Wed, 20 Jul 2016 08:52:40 -0600 [thread overview]
Message-ID: <20160720145240.10287-1-danismostlikely@gmail.com> (raw)
From: Daniel McGregor <daniel.mcgregor@vecima.com>
Ensure that the inline python doensn't try to expand a non-existant
variable.
Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
---
recipes-core/openjdk/openjdk-8-common.inc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/recipes-core/openjdk/openjdk-8-common.inc b/recipes-core/openjdk/openjdk-8-common.inc
index 089f907..4a2af6f 100644
--- a/recipes-core/openjdk/openjdk-8-common.inc
+++ b/recipes-core/openjdk/openjdk-8-common.inc
@@ -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)}"
--
2.9.1
reply other threads:[~2016-07-20 14:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160720145240.10287-1-danismostlikely@gmail.com \
--to=danismostlikely@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox