File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -148,10 +148,6 @@ GO_TAGS := $(build_tags)
148
148
# -ldflags
149
149
LD_FLAGS := $(ldflags )
150
150
151
- ifeq ($(SGX_MODE ) , HW)
152
- CGO_LDFLAGS += $(shell pkg-config --libs libsgx_epid)
153
- endif
154
-
155
151
all : build_all
156
152
157
153
go.sum : go.mod
Original file line number Diff line number Diff line change @@ -63,6 +63,11 @@ build: build-rust build-go
63
63
64
64
.PHONY : build-rust
65
65
build-rust : build-enclave
66
+ if [[ $( SGX_MODE) == HW ]]; then \
67
+ sed -i ' s/sgx_epid_sim/sgx_epid/' ./api/link_std.go; \
68
+ else \
69
+ sed -i ' s/sgx_epid/sgx_epid_sim/' ./api/link_std.go; \
70
+ fi ;
66
71
cargo build -Z unstable-options --profile $(BUILD_PROFILE ) --features " $( FEATURES_U) "
67
72
cp target/$(BUILD_PROFILE ) /libgo_cosmwasm.$(DLL_EXT ) api
68
73
@ # this pulls out ELF symbols, 80% size reduction!
Original file line number Diff line number Diff line change 3
3
4
4
package api
5
5
6
- // #cgo LDFLAGS: -Wl,-rpath,${SRCDIR} -L${SRCDIR} -lgo_cosmwasm -lsgx_dcap_ql -lsgx_dcap_quoteverify
6
+ // #cgo LDFLAGS: -Wl,-rpath,${SRCDIR} -L${SRCDIR} -lgo_cosmwasm -lsgx_dcap_ql -lsgx_dcap_quoteverify -lsgx_epid
7
7
import "C"
You can’t perform that action at this time.
0 commit comments