From bb239590602307191bd6d5df327214ed57f8f550 Mon Sep 17 00:00:00 2001 From: kub Date: Sat, 5 Dec 2020 15:11:06 +0100 Subject: [PATCH] make, improve detection of gcc --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 641006ec..f14b4bad 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ gperf ?= 0 ifneq ("$(PLATFORM)", "libretro") CFLAGS += -Wall -g -ifneq ($(findstring gcc,$(CC)),) +ifneq ($(findstring gcc,$(shell $(CC) -v 2>&1)),) CFLAGS += -ffunction-sections -fdata-sections LDFLAGS += -Wl,--gc-sections endif