summaryrefslogtreecommitdiffstats
path: root/meta/classes/image-mklibs.bbclass
diff options
context:
space:
mode:
authorNicolas Dechesne <nicolas.dechesne@linaro.org>2013-11-22 22:39:43 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-03 17:45:52 (GMT)
commit6cdecac4ef4b43917935aa0f5fb80548237ea92b (patch)
tree10ed3c3b52f821de59a995f76dc1b002e8541e71 /meta/classes/image-mklibs.bbclass
parent46533029401655872a1905c073a6cbb4e7b95333 (diff)
downloadpoky-6cdecac4ef4b43917935aa0f5fb80548237ea92b.tar.gz
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 (From OE-Core rev: 3a66dd762e493ad2cda57110be67c3b06628050a) Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/image-mklibs.bbclass')
-rw-r--r--meta/classes/image-mklibs.bbclass1
1 files changed, 1 insertions, 0 deletions
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() {
40 --ldlib ${dynamic_loader} \ 40 --ldlib ${dynamic_loader} \
41 --libdir ${baselib} \ 41 --libdir ${baselib} \
42 --sysroot ${PKG_CONFIG_SYSROOT_DIR} \ 42 --sysroot ${PKG_CONFIG_SYSROOT_DIR} \
43 --gcc-options "--sysroot=${PKG_CONFIG_SYSROOT_DIR}" \
43 --root ${IMAGE_ROOTFS} \ 44 --root ${IMAGE_ROOTFS} \
44 --target `echo ${TARGET_PREFIX} | sed 's/-$//' ` \ 45 --target `echo ${TARGET_PREFIX} | sed 's/-$//' ` \
45 -d ${WORKDIR}/mklibs/dest \ 46 -d ${WORKDIR}/mklibs/dest \