Skip to content

Commit 12024aa

Browse files
David Carrillo-Cisnerosacmel
authored andcommitted
tools lib: Allow external definition of CC, AR and LD
Use already defined values for CC, AR and LD when available. Signed-off-by: David Carrillo-Cisneros <davidcc@google.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Paul Turner <pjt@google.com> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/r/20170827075442.108534-4-davidcc@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 39a59f1 commit 12024aa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎tools/lib/api/Makefile‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ srctree := $(patsubst %/,%,$(dir $(srctree)))
88
#$(info Determined 'srctree' to be $(srctree))
99
endif
1010

11-
CC = $(CROSS_COMPILE)gcc
12-
AR = $(CROSS_COMPILE)ar
13-
LD = $(CROSS_COMPILE)ld
11+
CC ?= $(CROSS_COMPILE)gcc
12+
AR ?= $(CROSS_COMPILE)ar
13+
LD ?= $(CROSS_COMPILE)ld
1414

1515
MAKEFLAGS += --no-print-directory
1616

0 commit comments

Comments
 (0)