[oe-commits] Nicolas Dechesne : image-mklibs: ensure sysroot is correctly set when calling gcc
git at git.openembedded.org
git at git.openembedded.org
Tue Dec 3 17:31:26 UTC 2013
Module: openembedded-core.git
Branch: master-next
Commit: 3a66dd762e493ad2cda57110be67c3b06628050a
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=3a66dd762e493ad2cda57110be67c3b06628050a
Author: Nicolas Dechesne <nicolas.dechesne at linaro.org>
Date: Fri Nov 22 22:39:43 2013 +0000
image-mklibs: ensure sysroot is correctly set when calling gcc
[YOCTO #2519]
When getting gcc from sstate, it is possible to get a gcc with a bogus
sysroot configuration, as discussed in [1] or in [YOCTO #2519].
mklibs script will eventually call gcc, so we need to make sure that it
provides gcc with the right sysroot location.
[1] http://lists.openembedded.org/pipermail/openembedded-core/2013-September/084159.html
Signed-off-by: Nicolas Dechesne <nicolas.dechesne at linaro.org>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/image-mklibs.bbclass | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/classes/image-mklibs.bbclass b/meta/classes/image-mklibs.bbclass
index e975f5d..23456cc 100644
--- a/meta/classes/image-mklibs.bbclass
+++ b/meta/classes/image-mklibs.bbclass
@@ -40,6 +40,7 @@ mklibs_optimize_image_doit() {
--ldlib ${dynamic_loader} \
--libdir ${baselib} \
--sysroot ${PKG_CONFIG_SYSROOT_DIR} \
+ --gcc-options "--sysroot=${PKG_CONFIG_SYSROOT_DIR}" \
--root ${IMAGE_ROOTFS} \
--target `echo ${TARGET_PREFIX} | sed 's/-$//' ` \
-d ${WORKDIR}/mklibs/dest \
More information about the Openembedded-commits
mailing list