From patchwork Fri Nov 22 22:39:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Dechesne X-Patchwork-Id: 21717 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f72.google.com (mail-pb0-f72.google.com [209.85.160.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4BA5023FDB for ; Fri, 22 Nov 2013 22:40:51 +0000 (UTC) Received: by mail-pb0-f72.google.com with SMTP id jt11sf3359769pbb.7 for ; Fri, 22 Nov 2013 14:40:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=Dg25InExkahEsJLuE1DkfBQt++cKG2jxlZ698W504Fw=; b=Hw9FK938GD6rslUYBN/eQPg2kkWLOTiZ6hAU8EQSUJRFfblMgD6QvSrnfuzSDqr88A TFMbN9JOzjaPxLCX3SlS9C+JShA93tbt7QczbG9kHBmCYCPcLKKmqPGMjDkErOVDYykY fENfECKyZEBnzdxlknAF4L3FFX5FKr6WiFo+N5LcsqmBkWtDJ5/P+NmBPVZm6cnOJDh/ E1G7dMPmNrjkqY7WBEtha4cjZDhFH2TnbqjGUeyaHZ3ONvjqcqzXjGeFaNmt+wZgd40J yQbdEsdJaYbjxWJLo6Qex2biz2YaL47hOVnRUiCFxwrUoyHcNO61po75xUfZ5BAvs7Ol D4oQ== X-Gm-Message-State: ALoCoQl3BdxVxtZfcIuaT+qmXbsHk7LhYk7HBgQlHjuAIjddyQ2D+AOYCQWm/9fk2GLfO07uabno X-Received: by 10.66.240.203 with SMTP id wc11mr4843739pac.29.1385160050957; Fri, 22 Nov 2013 14:40:50 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.127.46 with SMTP id nd14ls1206824qeb.19.gmail; Fri, 22 Nov 2013 14:40:50 -0800 (PST) X-Received: by 10.52.165.131 with SMTP id yy3mr11298604vdb.25.1385160050807; Fri, 22 Nov 2013 14:40:50 -0800 (PST) Received: from mail-vb0-f46.google.com (mail-vb0-f46.google.com [209.85.212.46]) by mx.google.com with ESMTPS id k17si13263491vck.102.2013.11.22.14.40.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 22 Nov 2013 14:40:50 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.46 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.46; Received: by mail-vb0-f46.google.com with SMTP id i12so1305294vbh.19 for ; Fri, 22 Nov 2013 14:40:50 -0800 (PST) X-Received: by 10.58.143.17 with SMTP id sa17mr13759020veb.14.1385160050656; Fri, 22 Nov 2013 14:40:50 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp72561vcz; Fri, 22 Nov 2013 14:40:50 -0800 (PST) X-Received: by 10.195.13.45 with SMTP id ev13mr12297830wjd.20.1385160049466; Fri, 22 Nov 2013 14:40:49 -0800 (PST) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx.google.com with ESMTPS id a7si3352226wiy.80.2013.11.22.14.40.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 22 Nov 2013 14:40:49 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.182 is neither permitted nor denied by best guess record for domain of nicolas.dechesne@linaro.org) client-ip=209.85.212.182; Received: by mail-wi0-f182.google.com with SMTP id en1so3278531wid.3 for ; Fri, 22 Nov 2013 14:40:48 -0800 (PST) X-Received: by 10.180.75.115 with SMTP id b19mr4515375wiw.19.1385160048438; Fri, 22 Nov 2013 14:40:48 -0800 (PST) Received: from localhost.localdomain (gau06-1-78-243-126-63.fbx.proxad.net. [78.243.126.63]) by mx.google.com with ESMTPSA id bs15sm20181469wib.10.2013.11.22.14.40.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Nov 2013 14:40:47 -0800 (PST) From: Nicolas Dechesne To: openembedded-core@lists.openembedded.org Cc: patches@linaro.org, Nicolas Dechesne Subject: [PATCH dylan & dora & master] image-mklibs: ensure sysroot is correctly set when calling gcc Date: Fri, 22 Nov 2013 23:39:43 +0100 Message-Id: <1385159983-29270-1-git-send-email-nicolas.dechesne@linaro.org> X-Mailer: git-send-email 1.8.4.2 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: nicolas.dechesne@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.46 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , [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 --- 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 66b0f52..beef1b4 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 \