From c9a14d1c38f6e4b5e9b5dc0ff7e47af9c017087d Mon Sep 17 00:00:00 2001 From: Nikolai Lifanov Date: Wed, 31 May 2017 13:04:58 -0400 Subject: [PATCH] play nice with build systems that specify their own CC FreeBSD ports system is one of these build systems and it manages -std= settings and path to the correct compiler that may not be in PATH or called "gcc" or "clang". --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a6f3af7..06857bf 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ GCCVERSIONGTEQ4 := $(shell expr `gcc -dumpversion | cut -f1 -d.` \>= 4) ifeq ($(UNAME_S),Linux) LIBS=-lrt else ifeq "$(GCCVERSIONGTEQ4)" "1" - CC=c99 + CC?=c99 endif OBJS=main.o init.o actions1.o actions2.o score.o misc.o