Append -release to release output elf

This commit is contained in:
Mario Hüttel 2020-06-15 21:24:27 +02:00
parent 56439a3b13
commit ecd8d2537d
1 changed files with 3 additions and 3 deletions

View File

@ -72,14 +72,14 @@ CFLAGS += -Wall -Wextra -Wold-style-declaration -Wuninitialized -Wmaybe-uninitia
CFLAGS_RELEASE = -O3 -g
CFLAGS_DEBUG = -O0 -g
LFLAGS_RELEASE = -Wl,--gc-sections
LFLAGS_DEBUG =
LFLAGS_RELEASE = -Wl,--gc-sections
LFLAGS_DEBUG =
ifneq ($(DEBUGBUILD),true)
DEFINES += $(RELEASE_DEFINES)
CFLAGS += $(CFLAGS_RELEASE)
LFLAGS += $(LFLAGS_RELEASE)
target = $(TARGET_BASE)
target = $(TARGET_BASE)-release
OBJDIR = $(OBJDIR_BASE)/release
else
DEFINES += $(DEBUG_DEFINES)