Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
1105 Внедрение механизмов обеспечения безопасности цепочки поставки программных проектов
Legacy
scanned-projects
helm
Commits
d631328a
Commit
d631328a
authored
8 years ago
by
Adam Reese
Committed by
GitHub
8 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #1388 from adamreese/fix/1362-linker
fix(*): statically link cross builds
parents
04218a4d
273e0d39
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+2
-1
Makefile
with
2 additions
and
1 deletion
+2
-1
Makefile
+
2
−
1
View file @
d631328a
...
@@ -27,8 +27,9 @@ build:
...
@@ -27,8 +27,9 @@ build:
# usage: make build-cross dist VERSION=v2.0.0-alpha.3
# usage: make build-cross dist VERSION=v2.0.0-alpha.3
.PHONY
:
build-cross
.PHONY
:
build-cross
build-cross
:
LDFLAGS += -extldflags "-static"
build-cross
:
build-cross
:
gox
-output
=
"_dist/{{.OS}}-{{.Arch}}/{{.Dir}}"
-osarch
=
'
$(
TARGETS
)
'
$(
GOFLAGS
)
-tags
'
$(
TAGS
)
'
-ldflags
'
$(
LDFLAGS
)
'
k8s.io/helm/cmd/helm
CGO_ENABLED
=
0
gox
-output
=
"_dist/{{.OS}}-{{.Arch}}/{{.Dir}}"
-osarch
=
'
$(
TARGETS
)
'
$(
GOFLAGS
)
-tags
'
$(
TAGS
)
'
-ldflags
'
$(
LDFLAGS
)
'
k8s.io/helm/cmd/helm
.PHONY
:
dist
.PHONY
:
dist
dist
:
dist
:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets