mirror of
https://github.com/minio/minio.git
synced 2025-01-12 15:33:22 -05:00
build: update LDFLAGS for windows
This commit is contained in:
parent
fe1684d706
commit
2f98fa0a14
6
Makefile
6
Makefile
@ -1,6 +1,6 @@
|
|||||||
LDFLAGS = $(shell go run buildscripts/gen-ldflags.go)
|
LDFLAGS := $(shell go run buildscripts/gen-ldflags.go)
|
||||||
DOCKER_LDFLAGS = '-extldflags "-static"'
|
DOCKER_LDFLAGS = '-extldflags "-static"'
|
||||||
TAG = latest
|
TAG := latest
|
||||||
|
|
||||||
all: install
|
all: install
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ test: build
|
|||||||
@GO15VENDOREXPERIMENT=1 go test $(GOFLAGS) github.com/minio/minio/pkg...
|
@GO15VENDOREXPERIMENT=1 go test $(GOFLAGS) github.com/minio/minio/pkg...
|
||||||
|
|
||||||
gomake-all: build
|
gomake-all: build
|
||||||
@GO15VENDOREXPERIMENT=1 go build --ldflags $(LDFLAGS) -o $(GOPATH)/bin/minio
|
GO15VENDOREXPERIMENT=1 go build --ldflags $(LDFLAGS) -o $(GOPATH)/bin/minio
|
||||||
|
|
||||||
pkg-add:
|
pkg-add:
|
||||||
@GO15VENDOREXPERIMENT=1 govendor add $(PKG)
|
@GO15VENDOREXPERIMENT=1 govendor add $(PKG)
|
||||||
|
@ -28,7 +28,7 @@ build_script:
|
|||||||
- go test -race github.com/minio/minio/pkg...
|
- go test -race github.com/minio/minio/pkg...
|
||||||
- go run buildscripts/gen-ldflags.go > temp.txt
|
- go run buildscripts/gen-ldflags.go > temp.txt
|
||||||
- set /p LDFLAGS=<temp.txt
|
- set /p LDFLAGS=<temp.txt
|
||||||
- go build -ldflags=%LDFLAGS% -o %GOPATH%\bin\minio.exe
|
- go build --ldflags %LDFLAGS% -o %GOPATH%\bin\minio.exe
|
||||||
|
|
||||||
# to disable automatic tests
|
# to disable automatic tests
|
||||||
test: off
|
test: off
|
||||||
|
Loading…
Reference in New Issue
Block a user