summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2017-01-08 03:42:34 +0100
committerPali Rohár <pali.rohar@gmail.com>2017-01-08 03:42:34 +0100
commitf0b8ee117b33f9202a36647903a3753e7609ee8b (patch)
tree836d589354d8efaf8f94b017176ab21c519d90e3
parent4c8206b44fdeeb906b9a3c9d67b3a8b0f126df20 (diff)
download0xFFFF-f0b8ee117b33f9202a36647903a3753e7609ee8b.tar.bz2
Makefile: Fix setting compiler
-rw-r--r--src/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile
index be4ade6..0f05ed6 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -5,9 +5,9 @@ INSTALL ?= install
BUILD_DATE ?= $(shell LC_ALL=C date '+%b %e %Y')
-CC = gcc
-CROSS_CC = $(CROSS_COMPILE)$(CC)
-HOST_CC = $(HOST_COMPILE)$(CC)
+CC ?= cc
+CROSS_CC ?= $(CROSS_COMPILE)$(CC)
+HOST_CC ?= $(HOST_COMPILE)$(CC)
CPPFLAGS += -DVERSION=\"$(VERSION)\" -DBUILD_DATE="\"$(BUILD_DATE)\"" -D_POSIX_C_SOURCE=200809L -D_FILE_OFFSET_BITS=64
CFLAGS += -W -Wall -O2 -pedantic -std=c99