From patchwork Mon Feb 11 11:04:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 157984 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2464478jaa; Mon, 11 Feb 2019 03:05:04 -0800 (PST) X-Google-Smtp-Source: AHgI3IZTqtF5lz8j3cDrIALteXtEcIxKzeNLWl2rWnNDA20pzV1KhViBFnZQ/VBOCAArXe7PynFf X-Received: by 2002:a62:1706:: with SMTP id 6mr5583266pfx.28.1549883104866; Mon, 11 Feb 2019 03:05:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549883104; cv=none; d=google.com; s=arc-20160816; b=woRAXEBefyNWnnJCIK/zy8l/A7PwznqJub9Hi3oRqK21PZOGAzOdWGga3cnylpbMnN atlWWU+8lQzNDBtEfAGV1TZz5dEIkmkIJfKvkR8lJ090C3vcEQUPPBnhKN2lpvtpdH1G X1+vd7o+9+ovUc8QgxU/N1B7L0aFCM5yrd+HuSF5C1N46M//KZihI0mWr7P61KrD4XbF QtKjhXws47S5c0FSlCwYVyLIIDXZFSnsObUu6B6Nf86tJYwfbbyJT8K1bzOJla33JOa5 qSEfu/Nif2gi55lfZHclagOa1WewH2apzlIDRZTl7SfcrwWYNnzUAgc0Hj5S062QDXIp /Rag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=IfpAKpQG56+PEkzKQhdoxLo2Uau2hJObYLRRD9S3UKo=; b=mFrTN4kP/FEkmdTSxYBBjphcb/8fGCu2bh4afSVjdd82gzN8hyUA4Ypka2+BNSNmzr OI7qaNoX99mohDf4xWefdp3unlE9b5CE3DvI7lFLPmnf1UvKEyws5Uua69uEnkLrYaXO cGUdLtZoeey4y5xyBm86MD7s2JqXqNabFflwlIHAOdA1m+KBvwnpgxMHv/ArKF4AFPCr SNT6hPswgw1D73fZCrkh6ydCJhY4PEiDhOsM29K8izMeUCwMjITuit7r3biZCDSu4GWR oD4lqHi12vweX6ZpWnQa+L6g11CvRiD32/WpePcsc2iox43V4WPHqGLcJMEnuJGJaqaX 2TNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=hEiH3l6d; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id r10si1288028pls.33.2019.02.11.03.05.04; Mon, 11 Feb 2019 03:05:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=hEiH3l6d; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 6EBDC79EC1; Mon, 11 Feb 2019 11:04:53 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) by mail.openembedded.org (Postfix) with ESMTP id 617B178F72 for ; Mon, 11 Feb 2019 11:04:32 +0000 (UTC) Received: by mail-wm1-f41.google.com with SMTP id v26so16528423wmh.3 for ; Mon, 11 Feb 2019 03:04:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=9ovqFRClURPyh0FjX04fsQCbsFKG7yHCcqCBsnfKxXE=; b=hEiH3l6dhgVCObtbImE+JkHhelpa/Z77YTXqxVdHNMmBXFGil5jbMEWG0fT0jRJhf0 AXq3BCMlRQxaqlmRG/m8ax5Ekd4WZScfVLH+kXjIl/+8MzAuN3XVmaGhcNiAK7OmV5s0 no9UkWx9rGVFcwxuHWbJjUuMySQ4bb9cdcuaSN2i7TjLLQFwdu2Q4gi9eLPhFKEJzsJJ FUbNPH6lFgmyg7bhqG2vaQW7b0nulzNMY7N2voQY8q1NI+UesI+uPszBX1VVK5Tf64uN WCJ8N7FMEO6/n6/BdCOHaV+tRij+ovujXg2Ve6p0+V7xMZ72l9CYsDNNwlPcS+ZBCf7d TFew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=9ovqFRClURPyh0FjX04fsQCbsFKG7yHCcqCBsnfKxXE=; b=tYzXjiFeCiCfCCzeV5E+FrH0J3HKkPn3kBYb1G17DJBrfBZ5JzBGaNK983yJg3pNWe IcStQaw930P90enrboClfHFOi8GU5C/myMra9nIN5j3odFQT+JgXWXPPtwSN0DdNYSTF QKIAqiLRmZZcUss5vvXxe3TY8tpue3p8McJ3OYn5qb1o4snGF/8X1JPAB7SMRqutWe7H NZViiIziS/nIxQ1LoYnXwyfKw99qV8CN3fQbtYXtq6S9mplUjdactWYq7JpRcSLK7YVr 6JRlboepwApCLgJHdIhXUIZ0APqQp0RV3XhX7srdT7t5F7m7SZUHZ+4HjFrCwjGsFohV d17A== X-Gm-Message-State: AHQUAuaZTj8HQedTq2t6NMmubVaforYoORKtQMaLhREdhyC5QqgEgyoG XTSpRisOIz6iVWsLuHs3Tpv84x44OHM= X-Received: by 2002:a05:600c:2214:: with SMTP id z20mr1504660wml.83.1549883072894; Mon, 11 Feb 2019 03:04:32 -0800 (PST) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id j33sm18215321wre.91.2019.02.11.03.04.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Feb 2019 03:04:32 -0800 (PST) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Mon, 11 Feb 2019 11:04:25 +0000 Message-Id: <20190211110425.11105-4-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190211110425.11105-1-ross.burton@intel.com> References: <20190211110425.11105-1-ross.burton@intel.com> Subject: [OE-core] [PATCH 4/4] bitbake: use GCC ar and ranlib wrappers 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: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Instead of calling 'ar' and 'ranlib' directly, set AR=gcc-ar and RANLIB=gcc-ranlib. This fixes builds with link-time optimisation where more arguments would need to be passed to ranlib but gcc-ranlib will do that automatically. Signed-off-by: Ross Burton --- meta/conf/bitbake.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 9452d5ac4fb..21fd93e58d2 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -515,9 +515,9 @@ export FC = "${CCACHE}${HOST_PREFIX}gfortran ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} export CPP = "${HOST_PREFIX}gcc -E${TOOLCHAIN_OPTIONS} ${HOST_CC_ARCH}" export LD = "${HOST_PREFIX}ld${TOOLCHAIN_OPTIONS} ${HOST_LD_ARCH}" export CCLD = "${CC}" -export AR = "${HOST_PREFIX}ar" +export AR = "${HOST_PREFIX}gcc-ar" export AS = "${HOST_PREFIX}as ${HOST_AS_ARCH}" -export RANLIB = "${HOST_PREFIX}ranlib" +export RANLIB = "${HOST_PREFIX}gcc-ranlib" export STRIP = "${HOST_PREFIX}strip" export OBJCOPY = "${HOST_PREFIX}objcopy" export OBJDUMP = "${HOST_PREFIX}objdump"