Return-Path: From: Sven Eckelmann Date: Sat, 21 May 2011 15:10:35 +0200 Message-Id: <1305983442-1607-7-git-send-email-sven@narfation.org> In-Reply-To: <1305983442-1607-1-git-send-email-sven@narfation.org> References: <1305983442-1607-1-git-send-email-sven@narfation.org> Subject: [B.A.T.M.A.N.] [PATCH 07/14] batmand: Only define CC when not already specified Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: b.a.t.m.a.n@lists.open-mesh.org It is possible that a build environment specifies the CC different than gcc (for example gcc-4.6). The Makefile should only set it when the compiler wasn't explicitely set. Signed-off-by: Sven Eckelmann --- This patch depends on other patches submitted earlier: - batmand: Fix FTBFS on second build attempt - batmand: Remove obsolete creation of source packages - batmand: Remove subversion/svk revision information - batmand: Use nproc to get number of available processors Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 3b517da..804bdd4 100755 --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ endif # activate this variable to deactivate policy routing for backward compatibility #NO_POLICY_ROUTING = -DNO_POLICY_ROUTING -CC = gcc +CC ?= gcc CFLAGS += -pedantic -Wall -W -std=gnu99 EXTRA_CFLAGS = -DDEBUG_MALLOC -DMEMORY_USAGE -DPROFILE_DATA $(NO_POLICY_ROUTING) -DREVISION_VERSION=$(REVISION_VERSION) LDFLAGS += -lpthread -- 1.7.5.1