From: Phil Sutter Date: Mon, 18 Jul 2016 14:48:45 +0000 (+0200) Subject: Makefile: Allow to override CC X-Git-Tag: v4.7.0~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ffa2b557a81dc6f40b93223442df3db66980d80;p=thirdparty%2Fiproute2.git Makefile: Allow to override CC 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 Acked-by: David Ahern --- diff --git a/Makefile b/Makefile index 15c81ecfd..fa200ddb7 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