Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

feat: set CGO ENABLED to support sqlite3

LinkinStar0224de44480d
diff --git a/Makefile b/Makefile
index 8592b00e..9ceb6194 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ BIN=answer
DIR_SRC=./cmd/answer
DOCKER_CMD=docker
-GO_ENV=CGO_ENABLED=0
+#GO_ENV=CGO_ENABLED=0
Revision=$(shell git rev-parse --short HEAD)
GO_FLAGS=-ldflags="-X main.Version=$(VERSION) -X main.Revision=$(Revision) -X 'main.Time=`date`' -extldflags -static"
GO=$(GO_ENV) $(shell which go)