From: Andre Noll Date: Thu, 17 Sep 2020 16:21:30 +0000 (+0200) Subject: build: Fix manual setting of CC. X-Git-Tag: v0.2.0~1^2 X-Git-Url: http://git.tuebingen.mpg.de/?p=osl.git;a=commitdiff_plain;h=c2e27a85d7a7b8d4ce734c88f9ff1493b87a5789 build: Fix manual setting of CC. We want to set CC not only if its value comes from the default origin but also if it is undefined or empty. It's easiest to set it to "cc" whenever its current value is empty. --- diff --git a/Makefile b/Makefile index 6674514..87c7d29 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,8 @@ # increases performance and avoids hard-to-debug behaviour. .SUFFIXES: MAKEFLAGS += -Rr -ifeq ("$(origin CC)", "default") +CC := $(CC) +ifeq ($(strip $(CC)),) CC := cc endif