diff options
author | Yu Ke <ke.yu@intel.com> | 2011-07-11 15:23:14 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-12 15:00:46 +0100 |
commit | e90b2315624600b33f0ba4e2af287f58b8786308 (patch) | |
tree | 21d247916f89a4afaaf40d64b64d17cff86caeec /meta/classes | |
parent | 2429773613cb95b6a0541b5cce6ce1338d5cfc2b (diff) | |
download | poky-e90b2315624600b33f0ba4e2af287f58b8786308.tar.gz |
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.
(From OE-Core rev: fe45ef3d77d963136a13687bc14165a30e170d23)
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.bbclass | 2 |
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}" | |||
67 | prefix = "${STAGING_DIR_NATIVE}${prefix_native}" | 67 | prefix = "${STAGING_DIR_NATIVE}${prefix_native}" |
68 | exec_prefix = "${STAGING_DIR_NATIVE}${prefix_native}" | 68 | exec_prefix = "${STAGING_DIR_NATIVE}${prefix_native}" |
69 | 69 | ||
70 | libdir = "${STAGING_DIR_NATIVE}${libdir_native}" | ||
71 | |||
70 | NATIVE_PACKAGE_PATH_SUFFIX = "" | 72 | NATIVE_PACKAGE_PATH_SUFFIX = "" |
71 | bindir .= "${NATIVE_PACKAGE_PATH_SUFFIX}" | 73 | bindir .= "${NATIVE_PACKAGE_PATH_SUFFIX}" |
72 | libdir .= "${NATIVE_PACKAGE_PATH_SUFFIX}" | 74 | libdir .= "${NATIVE_PACKAGE_PATH_SUFFIX}" |