Skip to content

Commit

Permalink
Revert "Fix sgx_epid linking issue"
Browse files Browse the repository at this point in the history
This reverts commit c059de1.
  • Loading branch information
iKapitonau committed Oct 9, 2024
1 parent c059de1 commit 006b3b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,6 @@ GO_TAGS := $(build_tags)
# -ldflags
LD_FLAGS := $(ldflags)

ifeq ($(SGX_MODE), HW)
CGO_LDFLAGS += -lsgx_epid
else
CGO_LDFLAGS += -lsgx_epid_sim
endif

all: build_all

go.sum: go.mod
Expand All @@ -162,11 +156,11 @@ go.sum: go.mod

# Build the CLI tool
build_cli:
CGO_LDFLAGS=$(CGO_LDFLAGS) go build -o secretcli -mod=readonly $(GCFLAGS) -tags "$(filter-out sgx, $(GO_TAGS)) secretcli" -ldflags '$(LD_FLAGS)' ./cmd/secretd
go build -o secretcli -mod=readonly $(GCFLAGS) -tags "$(filter-out sgx, $(GO_TAGS)) secretcli" -ldflags '$(LD_FLAGS)' ./cmd/secretd

build_local_no_rust: bin-data-$(IAS_BUILD)
cp go-cosmwasm/target/$(BUILD_PROFILE)/libgo_cosmwasm.so go-cosmwasm/api
CGO_LDFLAGS=$(CGO_LDFLAGS) go build -mod=readonly $(GCFLAGS) -tags "$(GO_TAGS)" -ldflags '$(LD_FLAGS)' ./cmd/secretd
go build -mod=readonly $(GCFLAGS) -tags "$(GO_TAGS)" -ldflags '$(LD_FLAGS)' ./cmd/secretd

build-secret: build-linux

Expand Down
2 changes: 1 addition & 1 deletion go-cosmwasm/api/link_std.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@

package api

// #cgo LDFLAGS: -Wl,-rpath,${SRCDIR} -L${SRCDIR} -lgo_cosmwasm -lsgx_dcap_ql -lsgx_dcap_quoteverify
// #cgo LDFLAGS: -Wl,-rpath,${SRCDIR} -L${SRCDIR} -lgo_cosmwasm -lsgx_dcap_ql -lsgx_dcap_quoteverify -lsgx_epid
import "C"

0 comments on commit 006b3b7

Please sign in to comment.