Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Wojtek committed Nov 2, 2023
1 parent fb45e93 commit 347fc84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
File renamed without changes.
16 changes: 4 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,11 @@ all: lint build test-unit
###############################################################################

LD_FLAGS = -X github.com/forbole/juno/v5/cmd.Version=$(VERSION) \
-X github.com/forbole/juno/v5/cmd.Commit=$(COMMIT)
BUILD_FLAGS := -ldflags '$(LD_FLAGS)'
-X github.com/forbole/juno/v5/cmd.Commit=$(COMMIT) \
-linkmode=external -extldflags "-Wl,-z,muldefs -static"
BUILD_FLAGS := -tags muslc -ldflags '$(LD_FLAGS)'

ifeq ($(LINK_STATICALLY),true)
LD_FLAGS += -linkmode=external -extldflags "-Wl,-z,muldefs -static"
endif

build_tags += $(BUILD_TAGS)
build_tags := $(strip $(build_tags))

BUILD_FLAGS := -ldflags '$(LD_FLAGS)' -tags "$(build_tags)"

###############################################################################
##############################################################################
### Build ###
###############################################################################

Expand Down

0 comments on commit 347fc84

Please sign in to comment.