From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dan.rpsys.net (5751f4a1.skybroadband.com [87.81.244.161]) by mail.openembedded.org (Postfix) with ESMTP id E440E71957 for ; Fri, 5 Feb 2016 10:51:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id u15ApcJm028104 for ; Fri, 5 Feb 2016 10:51:38 GMT Received: from dan.rpsys.net ([127.0.0.1]) by localhost (dan.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id m7iaWUz8WGqS for ; Fri, 5 Feb 2016 10:51:38 +0000 (GMT) Received: from hex ([192.168.3.34]) (authenticated bits=0) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id u15ApW1j028101 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 5 Feb 2016 10:51:33 GMT Message-ID: <1454669492.27087.275.camel@linuxfoundation.org> From: Richard Purdie To: openembedded-core Date: Fri, 05 Feb 2016 10:51:32 +0000 X-Mailer: Evolution 3.16.5-1ubuntu3.1 Mime-Version: 1.0 Subject: [PATCH] nativesdk: Set PKG_CONFIG_SYSTEM_ variables X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Feb 2016 10:51:40 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit When building nativesdk recipes, we noticed paths going into .pc files which should have been suppressed since these were standard library search paths. pkgconfig-native sets these variables to sane values for native recipes, we need it set to values for our specific library paths in the nativesdk case. Setting these values cleans up the .pc files and suppresses the paths. Signed-off-by: Richard Purdie diff --git a/meta/classes/nativesdk.bbclass b/meta/classes/nativesdk.bbclass index f74da62..44154d9 100644 --- a/meta/classes/nativesdk.bbclass +++ b/meta/classes/nativesdk.bbclass @@ -60,6 +60,8 @@ sbindir = "${bindir}" export PKG_CONFIG_DIR = "${STAGING_DIR_HOST}${libdir}/pkgconfig" export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}" +export PKG_CONFIG_SYSTEM_LIBRARY_PATH = "${base_libdir}:${libdir}" +export PKG_CONFIG_SYSTEM_INCLUDE_PATH = "${includedir}" python nativesdk_virtclass_handler () { pn = e.data.getVar("PN", True)