Change the way of definition of SUFFIX

When archiving, if the number of files is large, the full path
in SUFFIX may exceed the command line limit for Cygwin and other
programs. To avoid this, the SUFFIX can be changed in the Makefile
in each application or library.
This commit is contained in:
SPRESENSE 2023-06-01 12:31:45 +09:00 committed by Alin Jerpelea
parent fd38b95467
commit 86efbcbee7

View File

@ -61,7 +61,7 @@ ifeq ($(BUILD_MODULE),y)
LDLIBS += $(COMPILER_RT_LIB)
endif
SUFFIX = $(subst $(DELIM),.,$(CWD))
SUFFIX ?= $(subst $(DELIM),.,$(CWD))
PROGNAME := $(subst ",,$(PROGNAME))