From mboxrd@z Thu Jan 1 00:00:00 1970 From: Phil Sutter Subject: [iproute PATCH v3 5/6] Makefile: Allow to override CC Date: Thu, 23 Jun 2016 19:34:13 +0200 Message-ID: <1466703254-5174-6-git-send-email-phil@nwl.cc> References: <1466703254-5174-1-git-send-email-phil@nwl.cc> Cc: Daniel Borkmann , David Ahern , Nicolas Dichtel , Julien Floret , netdev@vger.kernel.org To: Stephen Hemminger Return-path: Received: from orbyte.nwl.cc ([151.80.46.58]:35594 "EHLO mail.nwl.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751241AbcFWRfF (ORCPT ); Thu, 23 Jun 2016 13:35:05 -0400 In-Reply-To: <1466703254-5174-1-git-send-email-phil@nwl.cc> Sender: netdev-owner@vger.kernel.org List-ID: This makes it easier to build iproute2 with a custom compiler. While at it, make HOSTCC default to the value of CC if not explicitly set elsewhere. Signed-off-by: Phil Sutter --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 15c81ecfdca3a..fa200ddb76679 100644 --- a/Makefile +++ b/Makefile @@ -34,8 +34,8 @@ ADDLIB+=ipx_ntop.o ipx_pton.o #options for mpls ADDLIB+=mpls_ntop.o mpls_pton.o -CC = gcc -HOSTCC = gcc +CC := gcc +HOSTCC ?= $(CC) DEFINES += -D_GNU_SOURCE # Turn on transparent support for LFS DEFINES += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -- 2.8.2