summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-31 11:27:45 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-31 15:15:12 +0100
commite742eef3e1016a29f744341c17d1b421d318b40f (patch)
treec3bd8428ff99faca0c54d3e1b7955431b21bcd90
parentcdd86896c8d29135f937968e9aa07f919cf543d3 (diff)
downloadopenembedded-core-e742eef3e1016a29f744341c17d1b421d318b40f.tar.gz
openembedded-core-e742eef3e1016a29f744341c17d1b421d318b40f.tar.bz2
openembedded-core-e742eef3e1016a29f744341c17d1b421d318b40f.zip
gcc-multilib-config: Tweak naming of options to match gcc's expectations
gcc itself does not add the '-' of options to its multilib configuration. We should follow its example. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/gcc/gcc-multilib-config.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-multilib-config.inc b/meta/recipes-devtools/gcc/gcc-multilib-config.inc
index 8c07c2d5f8..67c33f8a96 100644
--- a/meta/recipes-devtools/gcc/gcc-multilib-config.inc
+++ b/meta/recipes-devtools/gcc/gcc-multilib-config.inc
@@ -202,7 +202,8 @@ python gcc_multilib_setup() {
whitelist = (d.getVar("MULTILIB_OPTION_WHITELIST", True) or "").split()
for i in tune_parameters['ccargs'].split():
if i in whitelist:
- opts.append(i)
+ # Need to strip '-' from option
+ opts.append(i[1:])
options.append(" ".join(opts))
if tune_baselib == 'lib':