소스 검색

make, improve detection of gcc

kub 3 년 전
부모
커밋
9511ffd153
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      Makefile

+ 2 - 1
Makefile

@@ -34,10 +34,11 @@ 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
+
 ifeq "$(DEBUG)" "0"
 	CFLAGS += -O3 -DNDEBUG
 endif