Skip to content

Commit

Permalink
Merge pull request #2221 from lluiscampos/revert-to-static-link
Browse files Browse the repository at this point in the history
MEN-7275 (follow-up): Prefer static linkage for `mender-connect` and `mender-snapshot`
  • Loading branch information
lluiscampos authored Dec 9, 2024
2 parents eb37da4 + 982dd75 commit 15ee7d0
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 15ee7d0

Please # to comment.