summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-09-22 13:16:10 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-09-22 13:16:50 +0900
commitad7e433a7d5e68d749fa6da4e284de1ffa3ea99c (patch)
treecbb73d410aca5e185e9a520de50bc7f29add7d00 /src/Makefile
parent5a60aa5050b1128d1498d280b1a0c15f98a78aa6 (diff)
downloadfzf-ad7e433a7d5e68d749fa6da4e284de1ffa3ea99c.tar.gz
Use build tags to enable static linking
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile
index 8c80ee28..ff40897c 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -44,10 +44,10 @@ clean:
cd fzf && rm -f fzf-*
fzf/$(BINARY32): $(SOURCES)
- cd fzf && GOARCH=386 CGO_ENABLED=1 go build -o $(BINARY32)
+ cd fzf && GOARCH=386 CGO_ENABLED=1 go build -a -o $(BINARY32)
fzf/$(BINARY64): $(SOURCES)
- cd fzf && go build $(LDFLAGS) -o $(BINARY64)
+ cd fzf && go build -a -tags "$(TAGS)" -o $(BINARY64)
$(BINDIR)/fzf: fzf/$(BINARY64) | $(BINDIR)
cp -f fzf/$(BINARY64) $(BINDIR)
@@ -79,7 +79,7 @@ centos: docker-centos
linux: docker-centos
docker run -i -t -v $(GOPATH):/go junegunn/centos-sandbox \
- /bin/bash -ci 'cd /go/src/github.com/junegunn/fzf/src; make'
+ /bin/bash -ci 'cd /go/src/github.com/junegunn/fzf/src; make TAGS=static'
.PHONY: all build release test install uninstall clean docker \
linux arch ubuntu centos docker-arch docker-ubuntu docker-centos