aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2021-01-11 14:53:31 +0800
committerLi Jin <dragon-fly@qq.com>2021-01-11 14:53:31 +0800
commit6dc11dccc6c8147b5b71c86be7e458eebc35f8c5 (patch)
tree3ee6e603d1271b0525df2ab8ceddd71a9c47399c /makefile
parenta191b6cd5ba938714203721e342e0af8c0ce569f (diff)
downloadyuescript-6dc11dccc6c8147b5b71c86be7e458eebc35f8c5.tar.gz
yuescript-6dc11dccc6c8147b5b71c86be7e458eebc35f8c5.tar.bz2
yuescript-6dc11dccc6c8147b5b71c86be7e458eebc35f8c5.zip
add all the compiler specific linker flags.
Diffstat (limited to 'makefile')
-rw-r--r--makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/makefile b/makefile
index 963057c..1a6f2f1 100644
--- a/makefile
+++ b/makefile
@@ -53,7 +53,7 @@ endif
53 53
54# Add platform related linker flag 54# Add platform related linker flag
55ifneq ($(UNAME_S),Darwin) 55ifneq ($(UNAME_S),Darwin)
56 LINK_FLAGS += -lstdc++fs 56 LINK_FLAGS += -lstdc++fs -Wl,-E
57endif 57endif
58 58
59# Function used to check variables. Use on the command line: 59# Function used to check variables. Use on the command line:
@@ -268,7 +268,7 @@ all: $(BIN_PATH)/$(BIN_NAME)
268$(BIN_PATH)/$(BIN_NAME): $(OBJECTS) 268$(BIN_PATH)/$(BIN_NAME): $(OBJECTS)
269 @echo "Linking: $@" 269 @echo "Linking: $@"
270 @$(START_TIME) 270 @$(START_TIME)
271 $(CMD_PREFIX)$(CXX) $(OBJECTS) $(LDFLAGS) -o $@ -Wl,-E 271 $(CMD_PREFIX)$(CXX) $(OBJECTS) $(LDFLAGS) -o $@
272 @echo -en "\t Link time: " 272 @echo -en "\t Link time: "
273 @$(END_TIME) 273 @$(END_TIME)
274 274