From: Mark Hatle Date: Thu, 31 Jul 2014 01:16:25 +0000 (-0500) Subject: gcc: Fix gcc-multilib-config comparison X-Git-Tag: 2015-4~2097 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=ced919f6013fc0dbb8b8f75f87a8c0a4f416b1fe;p=openembedded-core.git gcc: Fix gcc-multilib-config comparison Fix an issue on a multilib configuration that contains more then 1 multilib. I.e. on MIPS64: DEFAULTTUNE = "mips64" MULTILIBS = "lib32n:mips64_n32 lib32:mips32" While normally you'd use 'libn32', the above is legal. With the startswith code, the system will look to expand the 'lib32' element and find the 'lib32n' instead, and will result in a warning: lib32 doesn't have a corresponding tune. Skipping... Signed-off-by: Mark Hatle Signed-off-by: Saul Wold --- diff --git a/meta/recipes-devtools/gcc/gcc-multilib-config.inc b/meta/recipes-devtools/gcc/gcc-multilib-config.inc index b8c705a590..61340979ba 100644 --- a/meta/recipes-devtools/gcc/gcc-multilib-config.inc +++ b/meta/recipes-devtools/gcc/gcc-multilib-config.inc @@ -152,7 +152,7 @@ python gcc_multilib_setup() { if mlprefix: mlindex = 0 for ml in multilibs: - if mlprefix.startswith(ml): + if mlprefix == ml + '-': break mlindex += 1