Skip to content

Commit

Permalink
Merge pull request #55 from spacemeshos/update-deps
Browse files Browse the repository at this point in the history
Update spacemesh-sdk dependency
  • Loading branch information
lrettig authored May 30, 2023
2 parents e5a000d + 2bd3226 commit 8088112
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# Based on https://gist.github.com/trosendal/d4646812a43920bfe94e

DEPTAG := 0.0.1
DEPTAG := 1.0.3
DEPLIBNAME := spacemesh-sdk
DEPLOC := https://github.com/spacemeshos/$(DEPLIBNAME)/releases/download
UNZIP_DEST := deps
REAL_DEST := $(CURDIR)/$(UNZIP_DEST)
DOWNLOAD_DEST := $(UNZIP_DEST)/$(DEPLIBNAME).tar.gz

LINKLIBS := -L$(REAL_DEST)
CGO_LDFLAGS := $(LINKLIBS)
RPATH := -Wl,-rpath,@loader_path -Wl,-rpath,$(REAL_DEST)
CGO_LDFLAGS := $(LINKLIBS) $(RPATH)
STATICLDFLAGS := -L$(UNZIP_DEST) -led25519_bip32 -lspacemesh_remote_wallet
EXTRACT = tar -xzf

Expand Down Expand Up @@ -60,7 +61,7 @@ else ifeq ($(GOOS),darwin)

# macOS specific settings
# statically link our libs, dynamic build using default toolchain
CGO_LDFLAGS = $(LINKLIBS) $(REAL_DEST)/libed25519_bip32.a $(REAL_DEST)/libspacemesh_remote_wallet.a -framework CoreFoundation -framework IOKit -framework AppKit
CGO_LDFLAGS = $(LINKLIBS) $(REAL_DEST)/libed25519_bip32.a $(REAL_DEST)/libspacemesh_remote_wallet.a -framework CoreFoundation -framework IOKit -framework AppKit $(RPATH)
LDFLAGS =
else ifeq ($(GOOS),windows)
# static build using default toolchain
Expand Down

0 comments on commit 8088112

Please sign in to comment.