Fix minor inconsistencies in mk files

Fixes #3972
This commit is contained in:
Tomasz Gajewski
2020-10-05 19:49:57 +02:00
committed by Norman Feske
parent 8bed4c1d54
commit 98798f18b5
6 changed files with 6 additions and 8 deletions

View File

@@ -43,8 +43,8 @@ LIBCXX_GCC = $(shell $(CUSTOM_CXX_LIB) $(CC_MARCH) -print-file-name=libsupc++.a)
#
# Dummy target used by the build system
#
SRC_S = supc++.o
SRC_C = unwind.o
SRC_O = supc++.o
SRC_C = unwind.c
CXX_SRC = $(sort $(CXX_SRC_CC))
CXX_OBJECTS = $(addsuffix .o,$(basename $(CXX_SRC)))
LOCAL_SYMBOLS = $(patsubst %,--localize-symbol=%,$(LIBC_SYMBOLS))
@@ -89,7 +89,7 @@ endif
# Rule to link all libc definitions and libsupc++ libraries
# and to hide after that the exported libc symbols
#
$(SRC_S): $(CXX_OBJECTS)
$(SRC_O): $(CXX_OBJECTS)
$(MSG_MERGE)$@
$(VERBOSE)$(LD) $(LD_MARCH) $(addprefix -u ,$(KEEP_SYMBOLS)) -r $(CXX_OBJECTS) $(LIBCXX_GCC) -o $@.tmp
$(MSG_CONVERT)$@