Skip to content

Commit

Permalink
Merge pull request #2222 from mendersoftware/cherry-scarthgap-revert-…
Browse files Browse the repository at this point in the history
…to-static-link

[Cherry scarthgap]: MEN-7275 (follow-up): Prefer static linkage for `mender-connect` and `mender-snapshot`
  • Loading branch information
lluiscampos authored Dec 10, 2024
2 parents 7f3d868 + 9bfb43f commit d9e0a9a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ inherit systemd

GO_IMPORT = "github.com/mendersoftware/mender-connect"

# Prefer static linkage (golang's default)
GO_LINKSHARED = ""

python do_prepare_mender_connect_conf() {
import json

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ inherit go-ptest

GO_IMPORT = "github.com/mendersoftware/mender-snapshot"

# Prefer static linkage (golang's default)
GO_LINKSHARED = ""

# Set the version of mender-snapshot by passing it as an extra ldflag to go.bbclass
# This is equivalent to how it's set in the Makefile
GO_EXTRA_LDFLAGS:append = "-X github.com/mendersoftware/mender-snapshot/conf.Version=$(git describe --tags --dirty --exact-match 2>/dev/null || git rev-parse --short HEAD)"

0 comments on commit d9e0a9a

Please sign in to comment.