From 0249957fad7b9d393ad4e6064f0af6d4f26b1656 Mon Sep 17 00:00:00 2001 From: jakcron Date: Wed, 10 Nov 2021 15:40:19 +0800 Subject: [PATCH] Update makefile. --- makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index cebe800..33eb3d2 100644 --- a/makefile +++ b/makefile @@ -165,13 +165,13 @@ shared_lib: $(SRC_OBJ) create_binary_dir # Build Program program: $(SRC_OBJ) create_binary_dir @echo LINK $(PROJECT_BIN_PATH)/$(PROJECT_NAME) - @$(CXX) $(SRC_OBJ) $(LIB) -o "$(PROJECT_BIN_PATH)/$(PROJECT_NAME)" + @$(CXX) $(ARCHFLAGS) $(SRC_OBJ) $(LIB) -o "$(PROJECT_BIN_PATH)/$(PROJECT_NAME)" # Build Test Program test_program: $(TESTSRC_OBJ) $(SRC_OBJ) create_binary_dir ifneq ($(PROJECT_TESTSRC_PATH),) @echo LINK $(PROJECT_BIN_PATH)/$(PROJECT_NAME)_test - @$(CXX) $(TESTSRC_OBJ) $(SRC_OBJ) $(LIB) -o "$(PROJECT_BIN_PATH)/$(PROJECT_NAME)_test" + @$(CXX) $(ARCHFLAGS) $(TESTSRC_OBJ) $(SRC_OBJ) $(LIB) -o "$(PROJECT_BIN_PATH)/$(PROJECT_NAME)_test" endif # Documentation