sanity.bbclass: some multilib systems have symlink /lib -> /lib64

* ie gentoo has /lib -> /lib64
* old test assumed only /lib64 -> /lib

(From OE-Core rev: 776af6c2fa5a80debfafb4697c462d0dd0e7d76c)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Acked-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Martin Jansa 2011-03-03 10:39:16 +01:00 committed by Richard Purdie
parent 6360097336
commit bd32707850
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ def check_sanity(e):
nolibs = data.getVar('NO32LIBS', e.data, True)
if not nolibs:
lib32path = '/lib'
if os.path.exists('/lib64') and os.path.islink('/lib64'):
if os.path.exists('/lib64') and ( os.path.islink('/lib64') or os.path.islink('/lib') ):
lib32path = '/lib32'
if os.path.exists('%s/libc.so.6' % lib32path) and not os.path.exists('/usr/include/gnu/stubs-32.h'):