Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] gcc-multilib-config: Tweak naming of options to match gcc's expectations
@ 2015-07-31 10:27 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2015-07-31 10:27 UTC (permalink / raw)
  To: openembedded-core

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>

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':




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-07-31 10:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-31 10:27 [PATCH] gcc-multilib-config: Tweak naming of options to match gcc's expectations Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox