]> code.ossystems Code Review - openembedded-core.git/commitdiff
native.bbclass: generate libdir from libdir_native
authorYu Ke <ke.yu@intel.com>
Mon, 11 Jul 2011 07:23:14 +0000 (15:23 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 12 Jul 2011 13:52:32 +0000 (14:52 +0100)
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>
meta/classes/native.bbclass

index 11ec6dcde305262baae24fb2dabdd9acfbde338f..1e8de95207b124df22e0c08b5316b985c145c6c3 100644 (file)
@@ -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}"