From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com ([134.134.136.20]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1QgAwY-0001WD-0O for openembedded-core@lists.openembedded.org; Mon, 11 Jul 2011 09:30:14 +0200 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 11 Jul 2011 00:26:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.65,513,1304319600"; d="scan'208";a="26166086" Received: from kyu3-dev32.bj.intel.com (HELO localhost) ([10.238.153.187]) by orsmga001.jf.intel.com with ESMTP; 11 Jul 2011 00:26:16 -0700 From: Yu Ke To: openembedded-core@lists.openembedded.org Date: Mon, 11 Jul 2011 15:23:14 +0800 Message-Id: X-Mailer: git-send-email 1.7.0.4 In-Reply-To: References: In-Reply-To: References: Subject: [PATCH 01/10] native.bbclass: generate libdir from libdir_native X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2011 07:30:14 -0000 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 --- 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 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}" -- 1.7.0.4