From patchwork Mon May 22 05:00:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 100256 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp86420qge; Sun, 21 May 2017 22:02:55 -0700 (PDT) X-Received: by 10.84.216.30 with SMTP id m30mr26754631pli.161.1495429375076; Sun, 21 May 2017 22:02:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495429375; cv=none; d=google.com; s=arc-20160816; b=s9UX3Hcmrx8vsg9lpOL4/wHY9hoZPfo29BsG9hmIebZfkuXZDX4Awn1f8J/7et00fM lbAo37pIR1SElEC0XrznRlxjlaU0S6pGoLtoCllOMb7M7sPY55rimBPdK8BMq4EmSFn8 8cqrI080lD2OD4vVeMQuVUPQfjF/p99tElz87xkqR7fgOf23hUGsIfI1mJ+GmT80/wq8 y9eGz282w2SkA9Hf83iOV/DBrORjZWPIKrXVeZlXYnL9VNJVwQu+IIeiyd3/DLlt8B/M I+HV7pAGJMre2eDVpAkL65R99uUhS1+Fmf1dmTI6sYpaR6rQHRY3e+WRT6X+HHSuppZl WdJA== 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:arc-authentication-results; bh=xYDf807Z6c11jUAO51F7F3HVTtAPF1OvUD6fkezqkLs=; b=fgqiNdb8pV6fsclL3okqYbS0c23EwPBWj6d8bPxDcdsbIRb7xjRkphpYRY384GzIdZ 4tVOclF7CI5h2GM1+Vz0lE2kOI1tQ5sbZlwpXnFzZ0w7kQDok6zHPWUTtTu0nF5qR+x2 7v+uhvtGFzVvVu3epUDIgM4O5rOCgbg3JPzyeoP9Ayp7VXTqRrQmv7hpBTekrHjrVhzH 8e51LMjObYB+ScVy6Q6rpkmw2Bex8qvhwts2OljAv3kDYCFoGJCcF1iaShofHV4hqEW1 d7v/1l3LxFU32EiNZ7TrozWRSdbK4VMJ8uAYtufEBQHGIZ5BqKfe/wvGDenY1Af4GyA7 inrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com; 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=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id m11si16414410pln.8.2017.05.21.22.02.54; Sun, 21 May 2017 22:02:55 -0700 (PDT) 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=@gmail.com; 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=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 2117C77FED; Mon, 22 May 2017 05:02:28 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by mail.openembedded.org (Postfix) with ESMTP id D7C8077F6B for ; Mon, 22 May 2017 05:01:09 +0000 (UTC) Received: by mail-pf0-f193.google.com with SMTP id n23so17287920pfb.3 for ; Sun, 21 May 2017 22:01:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mEtgfpWTf2TWq/ksYE+EST1Ya6ifokvF0tQL6LUN7Go=; b=jenA+TYFKhi5Gl1/9V+DwN0ifk3+jUwfRlv90hz3yw2+HAVssjaSvdtPSTqt20LqEC H34Dwu+z9HQsw4QcMy/vWAHCgAZlinz27YEUNUwdN0S5MuNOouVuPyQViXjRxlzX6yZ4 stqsl/d9Dm5R+BWZaL/+tamJP5w4ZQfkWL0D7di04FjHYA4NCaS9RDD3wbSO/GgJr5h7 zTHeq4ipAHyPa34vKI2W0ExDgZ25ir77JQrrArrhWBfDALSBQCHOGmFGyw4M/2YOoKCr DoyrdOrg+d4iCES4Enj04TaL+5aJYbOp3XxMVTlgnhQrWx/R2ZLy1wFEJ4fTp0uHfDMT MbFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mEtgfpWTf2TWq/ksYE+EST1Ya6ifokvF0tQL6LUN7Go=; b=MRtE/TnLHzWahHMY+X9RXM8ypvuMkMrYTlZNeagPD4xBWtBmdHwM41+Jw3Fk1RXiwq cMGqudz1o6AQRNj0fX5HtnlWcfI6EuVQoB7DS09ywhlRGS7TE3cnubbmbKq2dUW1hx5w n5uTVlNcf9ea+JQioZXw0mv8ySDnfRUmESWxLbuCjLI96HVv21EWX7X793JAmQFBc+cb Vi1bbs+/4kSxc54kYNgs+RbJkQHIbkGdvz+YlF4nMc0v60ks5kxfljN4sXfzmCtDDrcN 046z8wr3U6KYvQu9De6RITYfruG2dj48JjQm4NkTTc7PDY39qVnuitxEKUfmAgRwR30C BBCw== X-Gm-Message-State: AODbwcDvvNsQmCb2kpxPwbdqQrzNDMmL7JgVw6LiHOPpW1u/uCVOWtcY m+9m/NsvJrZPgg== X-Received: by 10.98.28.202 with SMTP id c193mr23812459pfc.233.1495429270567; Sun, 21 May 2017 22:01:10 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::63fb]) by smtp.gmail.com with ESMTPSA id t13sm28839596pfa.126.2017.05.21.22.01.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 May 2017 22:01:09 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Sun, 21 May 2017 22:00:36 -0700 Message-Id: <20170522050042.42403-9-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170522050042.42403-1-raj.khem@gmail.com> References: <20170522050042.42403-1-raj.khem@gmail.com> Subject: [OE-core] [PATCH 09/15] systemd: Make knobs for compiler specific nn, ar, ranlib 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 These are used with LTO enabled so it has to be compiler specific, making it weak default, makes clang to override them when enabled. Signed-off-by: Khem Raj --- meta/recipes-core/systemd/systemd_232.bb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) -- 2.13.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-core/systemd/systemd_232.bb b/meta/recipes-core/systemd/systemd_232.bb index 398cb46f0d..8c778ae778 100644 --- a/meta/recipes-core/systemd/systemd_232.bb +++ b/meta/recipes-core/systemd/systemd_232.bb @@ -160,10 +160,14 @@ CFLAGS .= "${@bb.utils.contains('PACKAGECONFIG', 'valgrind', ' -DVALGRIND=1', '' # disable problematic GCC 5.2 optimizations [YOCTO #8291] FULL_OPTIMIZATION_append_arm = " -fno-schedule-insns -fno-schedule-insns2" +COMPILER_NM ?= "${HOST_PREFIX}gcc-nm" +COMPILER_AR ?= "${HOST_PREFIX}gcc-ar" +COMPILER_RANLIB ?= "${HOST_PREFIX}gcc-ranlib" + do_configure_prepend() { - export NM="${HOST_PREFIX}gcc-nm" - export AR="${HOST_PREFIX}gcc-ar" - export RANLIB="${HOST_PREFIX}gcc-ranlib" + export NM="${COMPILER_NM}" + export AR="${COMPILER_AR}" + export RANLIB="${COMPILER_RANLIB}" export KMOD="${base_bindir}/kmod" if [ -d ${S}/units.pre_sed ] ; then cp -r ${S}/units.pre_sed ${S}/units