mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [[PATCH] trace-cmd: ] Use conditional assignment of CC and AR
@ 2011-01-06 17:08 Darren Hart
  2011-01-07  3:35 ` Steven Rostedt
  0 siblings, 1 reply; 2+ messages in thread
From: Darren Hart @ 2011-01-06 17:08 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Steven Rostedt, Darren Hart, Tim Bird

From: Darren Hart <dvhart@linux.intel.com>

Allow the user to specify CC and AR via the environment by only
setting them in the Makefile if they don't already exist. This is
useful for external build systems for example.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Tim Bird <tim.bird@am.sony.com>
---
 Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 74f2c44..52d422c 100644
--- a/Makefile
+++ b/Makefile
@@ -13,8 +13,8 @@ FILE_VERSION = 6
 
 MAKEFLAGS += --no-print-directory
 
-CC = $(CROSS_COMPILE)gcc
-AR = $(CROSS_COMPILE)ar
+CC ?= $(CROSS_COMPILE)gcc
+AR ?= $(CROSS_COMPILE)ar
 EXT = -std=gnu99
 INSTALL = install
 
-- 
1.7.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-01-07  3:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-06 17:08 [[PATCH] trace-cmd: ] Use conditional assignment of CC and AR Darren Hart
2011-01-07  3:35 ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®