Skip to content

Commit 81e6fbf

Browse files
author
Paulo Gomes
committed
Use pkg-config in linux arm64
Signed-off-by: Paulo Gomes <[email protected]>
1 parent d6d7d49 commit 81e6fbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export CGO_CFLAGS=-I$(LIBGIT2_PATH)/include
4242
ifeq ($(shell uname -s),Darwin)
4343
export CGO_LDFLAGS=-L$(LIBGIT2_LIB_PATH) -lssh2 -lssl -lcrypto -lgit2
4444
else
45-
export CGO_LDFLAGS=-L$(LIBGIT2_LIB_PATH) -L$(LIBGIT2_LIB64_PATH) -lssh2 -lz -lgit2 -lrt -lssl -lcrypto -lz -ldl -pthread
45+
export CGO_LDFLAGS=$(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) pkg-config --libs --cflags libssh2 openssl libgit2)
4646
endif
4747

4848
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)

0 commit comments

Comments
 (0)