From 81e6fbffd8f3fe5b6679623c23b58572abbcbbbf Mon Sep 17 00:00:00 2001 From: Paulo Gomes Date: Thu, 27 Jan 2022 14:03:20 +0000 Subject: [PATCH] Use pkg-config in linux arm64 Signed-off-by: Paulo Gomes --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8dcc5396..0e1705da 100644 --- a/Makefile +++ b/Makefile @@ -42,7 +42,7 @@ export CGO_CFLAGS=-I$(LIBGIT2_PATH)/include ifeq ($(shell uname -s),Darwin) export CGO_LDFLAGS=-L$(LIBGIT2_LIB_PATH) -lssh2 -lssl -lcrypto -lgit2 else - 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) endif # Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)