From: Richard Purdie Date: Fri, 31 Jul 2015 10:27:45 +0000 (+0100) Subject: gcc-multilib-config: Tweak naming of options to match gcc's expectations X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~29545 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e742eef3e1016a29f744341c17d1b421d318b40f;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- diff --git a/meta/recipes-devtools/gcc/gcc-multilib-config.inc b/meta/recipes-devtools/gcc/gcc-multilib-config.inc index 8c07c2d5f81..67c33f8a96b 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':