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