Skip to content

Commit

Permalink
feat: 增加编译参数
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengkunwang223 committed Mar 1, 2023
1 parent cd921e7 commit c5dfb89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ build_web:

build_bin:
cd $(SERVER_PATH) \
&& CGO_ENABLED=1 GOOS=$(GOOS) GOARCH=$(GOARCH) $(GOBUILD) -o $(BUILD_PATH)/$(APP_NAME) $(MAIN)
&& CGO_ENABLED=1 GOOS=$(GOOS) GOARCH=$(GOARCH) $(GOBUILD) -trimpath -ldflags '-s -w --extldflags "-static -fpic"' -o $(BUILD_PATH)/$(APP_NAME) $(MAIN)

build_linux_on_mac:
cd $(SERVER_PATH) \
Expand Down

0 comments on commit c5dfb89

Please sign in to comment.