software/common.mak: Remove GCC_PATH introduced by #1279 since create lots of warning with regular toolchains.

This commit is contained in:
Florent Kermarrec 2022-06-03 15:11:01 +02:00
parent 481857ad0a
commit eab58ff0e9
1 changed files with 0 additions and 4 deletions

View File

@ -14,7 +14,6 @@ CX_normal := $(CCACHE) clang++ -target $(TRIPLE) -integrated-as
else else
CC_normal := $(CCACHE) $(TARGET_PREFIX)gcc -std=gnu99 CC_normal := $(CCACHE) $(TARGET_PREFIX)gcc -std=gnu99
CX_normal := $(CCACHE) $(TARGET_PREFIX)g++ CX_normal := $(CCACHE) $(TARGET_PREFIX)g++
GCC_PATH := $(patsubst %/libgcc.a,%,$(shell $(CC) -print-libgcc-file-name))
endif endif
AR_normal := $(TARGET_PREFIX)gcc-ar AR_normal := $(TARGET_PREFIX)gcc-ar
LD_normal := $(TARGET_PREFIX)ld LD_normal := $(TARGET_PREFIX)ld
@ -56,9 +55,6 @@ INCLUDES = -I$(PICOLIBC_DIRECTORY)/newlib/libc/tinystdio \
-I$(BUILDINC_DIRECTORY)/../libc \ -I$(BUILDINC_DIRECTORY)/../libc \
-I$(CPU_DIRECTORY) -I$(CPU_DIRECTORY)
COMMONFLAGS = $(DEPFLAGS) -Os $(CPUFLAGS) -g3 -fomit-frame-pointer -Wall -fno-builtin -fno-stack-protector $(INCLUDES) COMMONFLAGS = $(DEPFLAGS) -Os $(CPUFLAGS) -g3 -fomit-frame-pointer -Wall -fno-builtin -fno-stack-protector $(INCLUDES)
ifneq (,$(GCC_PATH))
COMMONFLAGS += -nostdinc -I$(GCC_PATH)/include -I$(GCC_PATH)/include-fixed
endif
ifneq ($(CPUFAMILY), arm) ifneq ($(CPUFAMILY), arm)
COMMONFLAGS += -fexceptions COMMONFLAGS += -fexceptions
endif endif