pingcap / go-tpc

A toolbox to benchmark TPC workloads in Go
Apache License 2.0
178 stars 94 forks source link

makefile abnormal #78

Open kevinbin opened 3 years ago

kevinbin commented 3 years ago

build error

GO15VENDOREXPERIMENT="1" CGO_ENABLED=0 GOARCH=amd64 GO111MODULE=on go build -ldflags '-L/usr/local/opt/sqlite/lib -X "main.version=v1.0.7" -X "main.commit=2021-04-02 06:02:02" -X "main.date=e53e96a326a2b54e1ff2074927bad519ef914766"' -o ./bin/go-tpc cmd/go-tpc/* command-line-arguments flag provided but not defined: -L/usr/local/opt/sqlite/lib

normal -L /usr/local/opt/sqlite/lib

LDFLAGS += -X "main.commit=$(shell date -u '+%Y-%m-%d %I:%M:%S')" LDFLAGS += -X "main.date=$(shell git rev-parse HEAD)"

It's reversed?

mahjonp commented 3 years ago

Hi, @kevinbin , could you try LDFLAGS="-L /usr/local/opt/sqlite/lib" make build ?