From patchwork Fri Jun 20 18:31:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Mayer X-Patchwork-Id: 32293 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f198.google.com (mail-ie0-f198.google.com [209.85.223.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B697A203C2 for ; Fri, 20 Jun 2014 18:31:55 +0000 (UTC) Received: by mail-ie0-f198.google.com with SMTP id y20sf26824832ier.5 for ; Fri, 20 Jun 2014 11:31:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=JKzxdM0hJ60s2Jdx8SYythHjOZ90iWUEiLWp/YjEN2E=; b=jyGAEy5yVNH5RhLaujkM9FCmR2ma7+jhFxfsz5g2gTdUb+cEQEq4h2bQIAwJAV4cJW b4H4ITljQPqohuGvLHGSLcaMHHakEOJCxM1ULrKLGKuZ6tJsxgPzuF7HvLCj8y2LRMSZ GNaQ/FCBU29/XEnKork6yCaUAC9/x630agnKIJGW/Wqvi5fZl0QF7jLNvUEDc/iX67Uw 2WFHx+BioTGLrT4oyF/Z10xggNDULaWENgnP51y1ny213dc4J9qA1262P8u/08Em580b k+KUfVH1cDaHaFgCgrDaGWAYazG4QiOD3yBcKEU689zjqoYhqALWvZF46TYdO1ShHICI z/Uw== X-Gm-Message-State: ALoCoQkGOxQA045hlp5slLTgDwzD/LRtC4Fr9IJvv44EUFzvvQ/L2O3UgD0xcYOZttthRTXNJ0xv X-Received: by 10.182.120.129 with SMTP id lc1mr2025164obb.21.1403289115050; Fri, 20 Jun 2014 11:31:55 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.83.50 with SMTP id i47ls1066863qgd.38.gmail; Fri, 20 Jun 2014 11:31:54 -0700 (PDT) X-Received: by 10.52.244.138 with SMTP id xg10mr2315560vdc.40.1403289114936; Fri, 20 Jun 2014 11:31:54 -0700 (PDT) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id k5si3350880vet.76.2014.06.20.11.31.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 20 Jun 2014 11:31:54 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.181 as permitted sender) client-ip=209.85.128.181; Received: by mail-ve0-f181.google.com with SMTP id db11so3929704veb.12 for ; Fri, 20 Jun 2014 11:31:54 -0700 (PDT) X-Received: by 10.58.24.38 with SMTP id r6mr2524947vef.41.1403289114805; Fri, 20 Jun 2014 11:31:54 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp42553vcb; Fri, 20 Jun 2014 11:31:54 -0700 (PDT) X-Received: by 10.66.183.11 with SMTP id ei11mr6963110pac.116.1403289114088; Fri, 20 Jun 2014 11:31:54 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id vv7si10880131pab.124.2014.06.20.11.31.53; Fri, 20 Jun 2014 11:31:53 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966605AbaFTSbw (ORCPT + 12 others); Fri, 20 Jun 2014 14:31:52 -0400 Received: from mail-gw3-out.broadcom.com ([216.31.210.64]:41977 "EHLO mail-gw3-out.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756985AbaFTSbu (ORCPT ); Fri, 20 Jun 2014 14:31:50 -0400 X-IronPort-AV: E=Sophos;i="5.01,515,1400050800"; d="scan'208";a="35193162" Received: from irvexchcas06.broadcom.com (HELO IRVEXCHCAS06.corp.ad.broadcom.com) ([10.9.208.53]) by mail-gw3-out.broadcom.com with ESMTP; 20 Jun 2014 11:37:15 -0700 Received: from IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) by IRVEXCHCAS06.corp.ad.broadcom.com (10.9.208.53) with Microsoft SMTP Server (TLS) id 14.3.174.1; Fri, 20 Jun 2014 11:31:50 -0700 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) with Microsoft SMTP Server id 14.3.174.1; Fri, 20 Jun 2014 11:31:50 -0700 Received: from mail.broadcom.com (lbrmn-lnxub70.ric.broadcom.com [10.136.8.215]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id DB4A59F9F9; Fri, 20 Jun 2014 11:31:49 -0700 (PDT) From: Markus Mayer To: Michal Marek CC: Linux Build List , Linux Kernel Mailing List Subject: [RFC PATCH 1/2] Makefile: Make HOSTCFLAGS and HOSTCXXFLAGS user modifyable Date: Fri, 20 Jun 2014 11:31:28 -0700 Message-ID: <1403289089-11299-2-git-send-email-markus.mayer@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1403289089-11299-1-git-send-email-markus.mayer@linaro.org> References: <1403289089-11299-1-git-send-email-markus.mayer@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: markus.mayer@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.181 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , In order to allow the user to pass extra arguments to the host compiler, we no longer overwrite the host compiler flags in the makefile, but append them to what was passed in. Signed-off-by: Markus Mayer --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 97b2861..5795eea 100644 --- a/Makefile +++ b/Makefile @@ -251,8 +251,8 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ HOSTCC = gcc HOSTCXX = g++ -HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -HOSTCXXFLAGS = -O2 +HOSTCFLAGS += -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer +HOSTCXXFLAGS += -O2 ifeq ($(shell $(HOSTCC) -v 2>&1 | grep -c "clang version"), 1) HOSTCFLAGS += -Wno-unused-value -Wno-unused-parameter \