[OE-core] [PATCH] gcc-multilib-config: Tweak naming of options to match gcc's expectations

Richard Purdie richard.purdie at linuxfoundation.org
Fri Jul 31 10:27:45 UTC 2015


gcc itself does not add the '-' of options to its multilib configuration.
We should follow its example.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

diff --git a/meta/recipes-devtools/gcc/gcc-multilib-config.inc b/meta/recipes-devtools/gcc/gcc-multilib-config.inc
index bdf4be7..f7f9f55 100644
--- a/meta/recipes-devtools/gcc/gcc-multilib-config.inc
+++ b/meta/recipes-devtools/gcc/gcc-multilib-config.inc
@@ -208,7 +208,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':





More information about the Openembedded-core mailing list