Browse Source

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 <Aduskett@rivian.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Adam Duskett 4 years ago
parent
commit
b5f7fa8838
1 changed files with 1 additions and 1 deletions
  1. 1 1
      package/mender/mender.mk

+ 1 - 1
package/mender/mender.mk

@@ -37,7 +37,7 @@ MENDER_LICENSE_FILES = \
 
 
 MENDER_DEPENDENCIES = openssl xz
 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 = \
 MENDER_UPDATE_MODULES_FILES = \
 	directory \
 	directory \