diff options
author | Phil Sutter <phil@nwl.cc> | 2016-07-18 16:48:45 +0200 |
---|---|---|
committer | Stephen Hemminger <shemming@brocade.com> | 2016-07-20 12:05:24 -0700 |
commit | 7ffa2b557a81dc6f40b93223442df3db66980d80 (patch) | |
tree | a4be2c1f338b99dfedeaf18aba4a6ce90d37bc35 | |
parent | 30a8842c4971f4215733bc1a8ddc4b8315edb99b (diff) |
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 <phil@nwl.cc>
Acked-by: David Ahern <dsa@cumulusnetworks.com>
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |