We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6d7d49 commit 81e6fbfCopy full SHA for 81e6fbf
Makefile
@@ -42,7 +42,7 @@ export CGO_CFLAGS=-I$(LIBGIT2_PATH)/include
42
ifeq ($(shell uname -s),Darwin)
43
export CGO_LDFLAGS=-L$(LIBGIT2_LIB_PATH) -lssh2 -lssl -lcrypto -lgit2
44
else
45
- export CGO_LDFLAGS=-L$(LIBGIT2_LIB_PATH) -L$(LIBGIT2_LIB64_PATH) -lssh2 -lz -lgit2 -lrt -lssl -lcrypto -lz -ldl -pthread
+ export CGO_LDFLAGS=$(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) pkg-config --libs --cflags libssh2 openssl libgit2)
46
endif
47
48
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
0 commit comments