Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | From a9a2b9e72027d0b2357f6dfe8b154762aaa8dd02 Mon Sep 17 00:00:00 2001 |
| 2 | From: Bruce Ashfield <bruce.ashfield@windriver.com> |
| 3 | Date: Thu, 19 Apr 2018 16:39:41 -0400 |
| 4 | Subject: [PATCH] build: drop recvtty and use GOBUILDFLAGS |
| 5 | |
| 6 | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> |
| 7 | --- |
| 8 | Makefile | 3 +-- |
| 9 | 1 file changed, 1 insertion(+), 2 deletions(-) |
| 10 | |
| 11 | diff --git a/src/import/Makefile b/src/import/Makefile |
| 12 | index c6de11d..0e9bddb 100644 |
| 13 | --- a/src/import/Makefile |
| 14 | +++ b/src/import/Makefile |
| 15 | @@ -39,8 +39,7 @@ contrib/cmd/recvtty/recvtty: $(SOURCES) |
| 16 | $(GO) build -buildmode=pie $(EXTRA_FLAGS) -ldflags "-X main.gitCommit=${COMMIT} -X main.version=${VERSION} $(EXTRA_LDFLAGS)" -tags "$(BUILDTAGS)" -o contrib/cmd/recvtty/recvtty ./contrib/cmd/recvtty |
| 17 | |
| 18 | static: $(SOURCES) |
| 19 | - CGO_ENABLED=1 $(GO) build $(EXTRA_FLAGS) -tags "$(BUILDTAGS) netgo cgo static_build" -installsuffix netgo -ldflags "-w -extldflags -static -X main.gitCommit=${COMMIT} -X main.version=${VERSION} $(EXTRA_LDFLAGS)" -o runc . |
| 20 | - CGO_ENABLED=1 $(GO) build $(EXTRA_FLAGS) -tags "$(BUILDTAGS) netgo cgo static_build" -installsuffix netgo -ldflags "-w -extldflags -static -X main.gitCommit=${COMMIT} -X main.version=${VERSION} $(EXTRA_LDFLAGS)" -o contrib/cmd/recvtty/recvtty ./contrib/cmd/recvtty |
| 21 | + CGO_ENABLED=1 $(GO) build -tags "$(BUILDTAGS) netgo cgo static_build" -installsuffix netgo -ldflags "-w -extldflags -static -X main.gitCommit=${COMMIT} -X main.version=${VERSION} $(EXTRA_LDFLAGS)" $(GOBUILDFLAGS) -o runc . |
| 22 | |
| 23 | release: |
| 24 | script/release.sh -r release/$(VERSION) -v $(VERSION) |
| 25 | -- |
| 26 | 2.7.4 |
| 27 | |