From a53f71f99bf7df3f9afc66e6ab0d71b6c3139a94 Mon Sep 17 00:00:00 2001 From: Diego Elio Pettenò Date: Fri, 8 Apr 2011 02:39:00 +0200 Subject: build: allow easy override of GCC_BASE Sometimes gcc reports the wrong path for its own base (for instance when ICC is present in the same system); by allowing an override of GCC_BASE in Makefile, it's easier for packages to fix this up. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 74905df..67d5ee6 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,8 @@ HAVE_GCC_DEP:=$(shell touch .gcc-test.c && \ echo 'yes'; rm -f .gcc-test.d .gcc-test.o .gcc-test.c) HAVE_GTK2:=$(shell pkg-config --exists gtk+-2.0 2>/dev/null && echo 'yes') -CFLAGS += -DGCC_BASE=\"$(shell $(CC) --print-file-name=)\" +GCC_BASE = $(shell $(CC) --print-file-name=) +CFLAGS += -DGCC_BASE=\"$(GCC_BASE)\" ifeq ($(HAVE_GCC_DEP),yes) CFLAGS += -Wp,-MD,$(@D)/.$(@F).d -- cgit v1.2.3-65-gdbad