From 94e666071d4f4e3a8335f705c84cc81adc5d856a Mon Sep 17 00:00:00 2001 From: fosslinux Date: Tue, 31 Dec 2019 10:55:43 +1100 Subject: [PATCH] use user-defined CC by default --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index f3412bb..f9e793e 100644 --- a/Makefile +++ b/Makefile @@ -42,8 +42,7 @@ HAS_STD = /run/systemd/system SYSCONF = /etc/sysconfig DEFAULT = /etc/default -CC = gcc -HOSTCC = $(CC) +CC ?= gcc CFLAGS = -O2 -Wall LDFLAGS = @@ -97,7 +96,7 @@ functions.h: @echo bin2c: bin2c.c - $(HOSTCC) bin2c.c -o $@ + $(CC) bin2c.c -o $@ @echo README: $(README)