fix_: replace define statements in makefile with assignment (#5286)

Replacing define statements with assignments required to build with a
lower version of GNU Make 3.81, which is the default for macOS 14.3.1.

Used by desktop PR:
https://github.com/status-im/status-desktop/pull/15036
This commit is contained in:
Mikhail Rogachev 2024-06-04 18:57:19 +02:00 committed by GitHub
parent fe25d97052
commit 27687eb8f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 8 deletions

View File

@ -60,20 +60,15 @@ GIT_AUTHOR := $(shell git config user.email || echo $$USER)
ENABLE_METRICS ?= true
BUILD_TAGS ?= gowaku_no_rln
define BUILD_FLAGS ?=
-ldflags="\
-X github.com/status-im/status-go/params.Version=$(RELEASE_TAG:v%=%) \
BUILD_FLAGS ?= -ldflags="-X github.com/status-im/status-go/params.Version=$(RELEASE_TAG:v%=%) \
-X github.com/status-im/status-go/params.GitCommit=$(GIT_COMMIT) \
-X github.com/status-im/status-go/params.IpfsGatewayURL=$(IPFS_GATEWAY_URL) \
-X github.com/status-im/status-go/vendor/github.com/ethereum/go-ethereum/metrics.EnabledStr=$(ENABLE_METRICS)"
endef
define BUILD_FLAGS_MOBILE ?=
-ldflags="\
-X github.com/status-im/status-go/params.Version=$(RELEASE_TAG:v%=%) \
BUILD_FLAGS_MOBILE ?= -ldflags="-X github.com/status-im/status-go/params.Version=$(RELEASE_TAG:v%=%) \
-X github.com/status-im/status-go/params.GitCommit=$(GIT_COMMIT) \
-X github.com/status-im/status-go/params.IpfsGatewayURL=$(IPFS_GATEWAY_URL)"
endef
networkid ?= StatusChain