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.

(From OE-Core rev: e742eef3e1016a29f744341c17d1b421d318b40f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2015-07-31 11:27:45 +01:00
parent cc21092c6d
commit 6c4b21d7af
1 changed files with 2 additions and 1 deletions

View File

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