Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

makefile abnormal #78

Open
kevinbin opened this issue Apr 2, 2021 · 1 comment
Open

makefile abnormal #78

kevinbin opened this issue Apr 2, 2021 · 1 comment

Comments

@kevinbin
Copy link

kevinbin commented Apr 2, 2021

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
Copy link
Contributor

mahjonp commented Apr 29, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants