Patchwork [1/8] native.bbclass: generate libdir from libdir_native

login
register
mail settings
Submitter Yu Ke
Date July 7, 2011, 2:10 p.m.
Message ID <5d98e0ea5f84335cd2b5030565e07a01d4fc4e45.1310047266.git.ke.yu@intel.com>
Download mbox | patch
Permalink /patch/7151/
State New, archived
Headers show

Comments

Yu Ke - July 7, 2011, 2:10 p.m.
currently, the libdir in native.bbclass is inherited from target libdir
defined in bitbake.conf. This is not correct in concept, instead, it
should be inherited from libdir_native. Current code works because both
the target libdir and libdir_native are the same value "/usr/lib".
But if libdir changes (e.g. to /usr/lib64), then build will break.

This patch make libdir generated from libdir_native to fix this issue.

Signed-off-by: Yu Ke <ke.yu@intel.com>
---
 meta/classes/native.bbclass |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass
index 90fcd13..d34d1e5 100644
--- a/meta/classes/native.bbclass
+++ b/meta/classes/native.bbclass
@@ -67,6 +67,8 @@  base_prefix = "${STAGING_DIR_NATIVE}"
 prefix = "${STAGING_DIR_NATIVE}${prefix_native}"
 exec_prefix = "${STAGING_DIR_NATIVE}${prefix_native}"
 
+libdir = "${STAGING_DIR_NATIVE}${libdir_native}"
+
 NATIVE_PACKAGE_PATH_SUFFIX = ""
 bindir .= "${NATIVE_PACKAGE_PATH_SUFFIX}"
 libdir .= "${NATIVE_PACKAGE_PATH_SUFFIX}"