]> code.ossystems Code Review - openembedded-core.git/commit
"The suite of statements in a function definition executes with a local namespace
authorAndrei Gherzan <andrei@gherzan.ro>
Wed, 11 Apr 2012 11:55:22 +0000 (12:55 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 11 Apr 2012 11:55:22 +0000 (12:55 +0100)
commit6d39af4f85220f20bad09b0fdd3ee0a7ec19c12d
treec7fb203c95ec2524d8cb32f447a1aa0d1e8dc930
parent99591085186c465f2ddfaef08f419ec7584d4522
"The suite of statements in a function definition executes with a local namespace
that is different from the global namespace. This means that all variables created
within a function are local to that function. When the suite finishes, these
working variables are discarded."

In this way the needs_ldconfig variable in linux_so never gets True in the statements
below this function. As global statement is generally discouraged, a return value
would be a clean and fast way to solve this issue.

[YOCTO #2205]

RP: Added logic to ensure the value doesn't get overwritten once set
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>---
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package.bbclass