Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5162107ybe; Tue, 17 Sep 2019 03:47:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqz96cDuad5OZkQZliU2v3eHrRBL9RlqO1rRcVzJ7ngWjJctcE4goeby5q8JZa2SUIbd57k5 X-Received: by 2002:a17:906:4985:: with SMTP id p5mr4147346eju.106.1568717244470; Tue, 17 Sep 2019 03:47:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568717244; cv=none; d=google.com; s=arc-20160816; b=aQlw9Imvag4Aw7aM5bmTvap26lbjJ8Rh+21g8kxUbQtM50yInQ1j9iosYAVPeG+wTa RFpMDCRXCOu2GSAWPsoQU6GgokZzbnzCoIqXT0kbDFNKV+R5VS5ui75JGAUABG9s2sJX 8KWYwYkd2IEhZzsU/q6WtCWgW8ezGIJ7f7a11//bkUjitpMGyUgNJKUhqhDhXqNMFGUp FK1nq3Kef0kbSnJsH+kL0kZwuVDCJQ8QJbXuX9xIsYrRP0QU07ulfRFCTrIrQZZdGjFq P3e5vniF9uPVS0Ndy3Anl6h6exUW+9l29nSW0gLOczMtOHJjGnPa15T9dLGjU5Thr4Wl liug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=kjxnCGfbE9oG4rXA0UnyUIJoUg+5vOPeXFD1JNJ7Bxk=; b=iNzSY+Kx9PgI6Qmc5sTTDIVMg82pn+URWP9nIpfKQu9e21QwogpoRHyA7uWmd3/rE0 OMEftT6oh9rkv4jEUi8ERBqXL1e9RQaKvjD6BPkYRcAsx7UEuuQOIcgc7K6dYDaM+a77 qXfthZSMtTuho/+UFZe9R1mq2h7gueBzFrrVn+r/swL6tnQGIHAhuDER0v/bItiPUOhC fkZKZNBZFbVxc6h5NgROk44FhFCppQQpf7EK3w9UDiZ34rMVZDDmjBUjUVg5S+zXo3QM DMr3Grf4pyuqk+vSicNjxJBoXJdTNzZjk7uS13W43U9027DrMFvk5nywRFNvOzrYvhn0 /1Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b="lqyHqJ/6"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g13si850685ejf.133.2019.09.17.03.47.00; Tue, 17 Sep 2019 03:47:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b="lqyHqJ/6"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727516AbfIQKON (ORCPT + 99 others); Tue, 17 Sep 2019 06:14:13 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:34901 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727519AbfIQKON (ORCPT ); Tue, 17 Sep 2019 06:14:13 -0400 Received: by mail-lf1-f66.google.com with SMTP id w6so2432822lfl.2 for ; Tue, 17 Sep 2019 03:14:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=kjxnCGfbE9oG4rXA0UnyUIJoUg+5vOPeXFD1JNJ7Bxk=; b=lqyHqJ/6gSch6A2/7HyTmfxCiK9D0zeoHcv9Tj5I3x0qrpoZPRsfNfQzp/aXNC1l7Q Y06UseY2279S/LZ6lv6HUmgNl/5AxWVmSxiV6TtnRtUulOVSVYTZFw1r2o7qCxTqxgPb WpVlm5hsDSPKKEnSMr73cR9hAnU91GECatNFtO+6PGCPsbboLcSbvDu8mIY8t8mPX8mE rfxkpHrgjVpBmONgNMYYEu1RlnULSSG2Js7yFjyuv2wrO3hGdzXLBEOybIaL9NlN6rO/ OI4cdWaMWlO2meZYkVWRQlurxnIkTKyzQqBUCV1JXvJ67cyds4D3ERR/yx9v5MwfWM/H NDsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=kjxnCGfbE9oG4rXA0UnyUIJoUg+5vOPeXFD1JNJ7Bxk=; b=rujThQMQDG/9DfQ9Yac02mUGEHFgH1Jbb8khjHsoSJsnQEWCof2/0U30X1fgqWD/YJ zC5VDLQHTC675RG6iX4ZJtPtGEKqolsREL/FeYzju1mzzJZNLAWaWq4/RB9zjWAxQZw2 DQCTyn3chsEMMKT69RKEpjb8YSespPOOqva/inRkLdrbBlspjjnlcvk6k9SY5ZUFJWpC mDoukXMsmOWD1JKNP8tv/f39F9nW1mIqECxw9ONltT4OWEdCirNaNlpsBmry9sUqyiga x12PK2Ay6KDur3QBFWrYKYC7gAWTyt+N7LXSmJF1MaGsjJzTfnftfBvSk0IguAXQwzrt nzWQ== X-Gm-Message-State: APjAAAXgRVJjliYlHpeCGYHNGeBqOMHmfV9x0QKj5fxyP21JLCUg1EEr wDNUf58/OIct5ELYfS+MdLUnuw== X-Received: by 2002:a19:2207:: with SMTP id i7mr1644977lfi.185.1568715250889; Tue, 17 Sep 2019 03:14:10 -0700 (PDT) Received: from ?IPv6:2a00:1fa0:6e6:a4e9:5101:fe11:ada5:769e? ([2a00:1fa0:6e6:a4e9:5101:fe11:ada5:769e]) by smtp.gmail.com with ESMTPSA id g5sm221169ljk.22.2019.09.17.03.14.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Sep 2019 03:14:10 -0700 (PDT) Subject: Re: [PATCH v3 bpf-next 09/14] samples: bpf: makefile: use own flags but not host when cross compile To: Ivan Khoronzhuk , ast@kernel.org, daniel@iogearbox.net, yhs@fb.com, davem@davemloft.net, jakub.kicinski@netronome.com, hawk@kernel.org, john.fastabend@gmail.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, clang-built-linux@googlegroups.com References: <20190916105433.11404-1-ivan.khoronzhuk@linaro.org> <20190916105433.11404-10-ivan.khoronzhuk@linaro.org> From: Sergei Shtylyov Message-ID: Date: Tue, 17 Sep 2019 13:14:06 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20190916105433.11404-10-ivan.khoronzhuk@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello! On 16.09.2019 13:54, Ivan Khoronzhuk wrote: > While compile natively, the hosts cflags and ldflags are equal to ones Compiling. Host's. > used from HOSTCFLAGS and HOSTLDFLAGS. When cross compiling it should > have own, used for target arch. While verification, for arm, arm64 and > x86_64 the following flags were used alsways: > > -Wall > -O2 > -fomit-frame-pointer > -Wmissing-prototypes > -Wstrict-prototypes > > So, add them as they were verified and used before adding > Makefile.target, but anyway limit it only for cross compile options as > for host can be some configurations when another options can be used, > So, for host arch samples left all as is, it allows to avoid potential > option mistmatches for existent environments. Mismatches. > Signed-off-by: Ivan Khoronzhuk [...] MBR, Sergei