]> git.tuebingen.mpg.de Git - osl.git/blobdiff - Makefile
build: Fix manual setting of CC.
[osl.git] / Makefile
index 2ebb0debe99bacd4087a765a62322f415ac85b24..87c7d29a0c35afa394764d523911a7d9d9c661d7 100644 (file)
--- 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
 
@@ -22,9 +23,6 @@ executables := oslfsck
 man_pages := oslfsck.1
 
 INSTALL := install
-ifeq "$(origin CC)" "default"
-        CC := cc
-endif
 MKDIR := mkdir -p
 RM := rm -f
 LN := ln