From 6676e69f6c0dfeae916e54e02d627ba983886df8 Mon Sep 17 00:00:00 2001 From: Ilya Raykker Date: Fri, 1 Nov 2024 11:04:37 +0400 Subject: [PATCH] Fix libsgx_epid ldflags --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a19ab5e5e..0dab63d85 100644 --- a/Makefile +++ b/Makefile @@ -149,7 +149,7 @@ GO_TAGS := $(build_tags) LD_FLAGS := $(ldflags) ifeq ($(SGX_MODE), HW) - CGO_LDFLAGS += -L/opt/sgxsdk/lib64 -lsgx_epid + CGO_LDFLAGS += $(shell pkg-config --libs libsgx_epid) endif all: build_all