makefile: detect prefixed gcc properly

When cross-compiling, we'll have CC=aarch64-unknown-linux-gcc or
similar.
This commit is contained in:
sternenseemann 2021-10-04 22:37:10 +02:00
parent 71de4fcc59
commit 643b1ae485

View File

@ -36,7 +36,7 @@ single-c:
# compiler setup
CC = clang
ifeq ($(CC),gcc)
ifneq ($(findstring gcc, $(CC)),)
CCFLAGS = -Wno-parentheses
else
CCFLAGS = -Wno-microsoft-anon-tag