From b5f7fa88381e3a4aa0e6c1e567dd5f164de176ba Mon Sep 17 00:00:00 2001 From: Adam Duskett Date: Sat, 20 Mar 2021 15:28:33 -0700 Subject: [PATCH] package/mender/mender.mk: fix linker version argument The current linker flag "-X main.Version=$(MENDER_VERSION)" no longer points to the correct location, which results in "version: unknown" when runnning "mender -version." Update the linker flag to point to the correct location. Signed-off-by: Adam Duskett Signed-off-by: Thomas Petazzoni --- package/mender/mender.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/mender/mender.mk b/package/mender/mender.mk index 3e82f556fb..16d7178a6b 100644 --- a/package/mender/mender.mk +++ b/package/mender/mender.mk @@ -37,7 +37,7 @@ MENDER_LICENSE_FILES = \ MENDER_DEPENDENCIES = openssl xz -MENDER_LDFLAGS = -X main.Version=$(MENDER_VERSION) +MENDER_LDFLAGS = -X github.com/mendersoftware/mender/conf.Version=$(MENDER_VERSION) MENDER_UPDATE_MODULES_FILES = \ directory \ -- 2.30.2