diff options
author | Jonathon Fernyhough | 2020-06-21 15:27:48 +0100 |
---|---|---|
committer | Jonathon Fernyhough | 2020-06-21 15:27:48 +0100 |
commit | dfadc5be2a7dc330321fc6d8924b87376a0bb094 (patch) | |
tree | 5abfa316d479b402702df809e857666ee2b1a36e /ldflags.patch | |
parent | 0d9d109b4bb986d6bb28a70e01e7ab02d5d9d4ea (diff) | |
download | aur-dfadc5be2a7dc330321fc6d8924b87376a0bb094.tar.gz |
Upstream 1.82. Patch LDFLAGS.
Diffstat (limited to 'ldflags.patch')
-rw-r--r-- | ldflags.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ldflags.patch b/ldflags.patch new file mode 100644 index 000000000000..894e5bff6beb --- /dev/null +++ b/ldflags.patch @@ -0,0 +1,13 @@ +diff --git a/Makefile b/Makefile +index 59a3c46..1d285ed 100644 +--- a/Makefile ++++ b/Makefile +@@ -34,7 +34,7 @@ deps: + rm -rf /home/travis/gopath/src/go.etcd.io/etcd/vendor/golang.org/x/net/trace + + build: deps +- go build $(GO_FLAGS) -ldflags "$(LDFLAGS)" -o $(BINARY) $(SOURCE_DIR) ++ go build $(GO_FLAGS) -ldflags "-X github.com/chrislusf/seaweedfs/weed/util.COMMIT=${COMMIT} -extldflags $(LDFLAGS)" -o $(BINARY) $(SOURCE_DIR) + + linux: deps + mkdir -p linux |