build: Make by default static builds for mc
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
LDFLAGS = $(shell go run buildscripts/gen-ldflags.go)
|
||||
LDFLAGS_STATIC = '-extldflags "-static"'
|
||||
|
||||
all: install
|
||||
|
||||
@@ -9,6 +10,8 @@ checkdeps:
|
||||
checkgopath:
|
||||
@echo "Checking if project is at ${GOPATH}"
|
||||
@for mcpath in $(echo ${GOPATH} | sed 's/:/\n/g'); do if [ ! -d ${mcpath}/src/github.com/minio/mc ]; then echo "Project not found in ${mcpath}, please follow instructions provided at https://github.com/minio/minio/blob/master/CONTRIBUTING.md#setup-your-minio-github-repository" && exit 1; fi done
|
||||
@echo "LDFLAGS: ${LDFLAGS}"
|
||||
@echo "LDFLAGS_STATIC: ${LDFLAGS_STATIC}"
|
||||
|
||||
getdeps: checkdeps checkgopath
|
||||
@go get github.com/golang/lint/golint && echo "Installed golint:"
|
||||
@@ -52,7 +55,7 @@ test: verifiers
|
||||
@GO15VENDOREXPERIMENT=1 go test $(GOFLAGS) github.com/minio/mc/pkg...
|
||||
|
||||
gomake-all: build
|
||||
@GO15VENDOREXPERIMENT=1 go build -ldflags $(LDFLAGS) -o $(GOPATH)/bin/mc
|
||||
@GO15VENDOREXPERIMENT=1 go build --ldflags $(LDFLAGS) --ldflags $(LDFLAGS_STATIC) -o $(GOPATH)/bin/mc
|
||||
@mkdir -p $(HOME)/.mc
|
||||
|
||||
coverage:
|
||||
|
||||
@@ -27,8 +27,7 @@ import (
|
||||
)
|
||||
|
||||
// Trace - tracing structure
|
||||
type Trace struct {
|
||||
}
|
||||
type Trace struct{}
|
||||
|
||||
// NewTrace - initialize Trace structure
|
||||
func NewTrace() httptracer.HTTPTracer {
|
||||
|
||||
Reference in New Issue
Block a user