Skip to content

Commit 8088112

Browse files
authored
Merge pull request #55 from spacemeshos/update-deps
Update spacemesh-sdk dependency
2 parents e5a000d + 2bd3226 commit 8088112

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# Based on https://gist.github.com/trosendal/d4646812a43920bfe94e
22

3-
DEPTAG := 0.0.1
3+
DEPTAG := 1.0.3
44
DEPLIBNAME := spacemesh-sdk
55
DEPLOC := https://github.com/spacemeshos/$(DEPLIBNAME)/releases/download
66
UNZIP_DEST := deps
77
REAL_DEST := $(CURDIR)/$(UNZIP_DEST)
88
DOWNLOAD_DEST := $(UNZIP_DEST)/$(DEPLIBNAME).tar.gz
99

1010
LINKLIBS := -L$(REAL_DEST)
11-
CGO_LDFLAGS := $(LINKLIBS)
11+
RPATH := -Wl,-rpath,@loader_path -Wl,-rpath,$(REAL_DEST)
12+
CGO_LDFLAGS := $(LINKLIBS) $(RPATH)
1213
STATICLDFLAGS := -L$(UNZIP_DEST) -led25519_bip32 -lspacemesh_remote_wallet
1314
EXTRACT = tar -xzf
1415

@@ -60,7 +61,7 @@ else ifeq ($(GOOS),darwin)
6061

6162
# macOS specific settings
6263
# statically link our libs, dynamic build using default toolchain
63-
CGO_LDFLAGS = $(LINKLIBS) $(REAL_DEST)/libed25519_bip32.a $(REAL_DEST)/libspacemesh_remote_wallet.a -framework CoreFoundation -framework IOKit -framework AppKit
64+
CGO_LDFLAGS = $(LINKLIBS) $(REAL_DEST)/libed25519_bip32.a $(REAL_DEST)/libspacemesh_remote_wallet.a -framework CoreFoundation -framework IOKit -framework AppKit $(RPATH)
6465
LDFLAGS =
6566
else ifeq ($(GOOS),windows)
6667
# static build using default toolchain

0 commit comments

Comments
 (0)