From 6dc11dccc6c8147b5b71c86be7e458eebc35f8c5 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Mon, 11 Jan 2021 14:53:31 +0800 Subject: add all the compiler specific linker flags. --- makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index 963057c..1a6f2f1 100644 --- a/makefile +++ b/makefile @@ -53,7 +53,7 @@ endif # Add platform related linker flag ifneq ($(UNAME_S),Darwin) - LINK_FLAGS += -lstdc++fs + LINK_FLAGS += -lstdc++fs -Wl,-E endif # Function used to check variables. Use on the command line: @@ -268,7 +268,7 @@ all: $(BIN_PATH)/$(BIN_NAME) $(BIN_PATH)/$(BIN_NAME): $(OBJECTS) @echo "Linking: $@" @$(START_TIME) - $(CMD_PREFIX)$(CXX) $(OBJECTS) $(LDFLAGS) -o $@ -Wl,-E + $(CMD_PREFIX)$(CXX) $(OBJECTS) $(LDFLAGS) -o $@ @echo -en "\t Link time: " @$(END_TIME) -- cgit v1.2.3-55-g6feb