summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorYu Ke <ke.yu@intel.com>2011-07-11 15:23:14 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-12 14:52:32 +0100
commitfe45ef3d77d963136a13687bc14165a30e170d23 (patch)
treedf5d8a851fecf29bbaed6308c3c26cf1421c1831 /meta/classes
parentd3c5f93714165e5c089ce80194f2be07e31d920c (diff)
downloadopenembedded-core-fe45ef3d77d963136a13687bc14165a30e170d23.tar.gz
openembedded-core-fe45ef3d77d963136a13687bc14165a30e170d23.tar.bz2
openembedded-core-fe45ef3d77d963136a13687bc14165a30e170d23.zip
native.bbclass: generate libdir from libdir_native
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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/native.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass
index 11ec6dcde3..1e8de95207 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}"