mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
Set extldflags to static when building
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
0bd0593a77
commit
3e0f1ad7f5
@@ -1,7 +1,7 @@
|
|||||||
build:
|
build:
|
||||||
main: main.go
|
main: main.go
|
||||||
binary: hugo
|
binary: hugo
|
||||||
ldflags_template: -s -w -X hugolib.BuildDate={{.Date}}
|
ldflags_template: -s -w -X hugolib.BuildDate={{.Date}} -extldflags "-static"
|
||||||
goos:
|
goos:
|
||||||
- darwin
|
- darwin
|
||||||
- linux
|
- linux
|
||||||
|
Reference in New Issue
Block a user