Skip to content

Commit

Permalink
Fix setting Makefile FLAGS change error.
Browse files Browse the repository at this point in the history
  • Loading branch information
dossy committed Nov 19, 2023
1 parent 2924688 commit 0d429f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# enable cgo to build sqlite
export CGO_ENABLED = 1

# strip binaries
override FLAGS := -tags sqlite_omit_load_extension,sqlite_json -ldflags '-s' $(FLAGS)

# default output file
OUTPUT ?= dbmate

Expand All @@ -12,6 +9,9 @@ GOOS := $(shell go env GOOS)
ifeq ($(GOOS),linux)
# statically link binaries to support alpine linux
override FLAGS := -tags netgo,osusergo,sqlite_omit_load_extension,sqlite_json -ldflags '-s -extldflags "-static"' $(FLAGS)
else
# strip binaries
override FLAGS := -tags sqlite_omit_load_extension,sqlite_json -ldflags '-s' $(FLAGS)
endif
ifeq ($(GOOS),darwin)
export SDKROOT ?= $(shell xcrun --sdk macosx --show-sdk-path)
Expand Down

0 comments on commit 0d429f0

Please sign in to comment.