Skip to content

Commit

Permalink
Update rpath for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
lrettig committed May 30, 2023
1 parent 30fc966 commit 2bd3226
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ REAL_DEST := $(CURDIR)/$(UNZIP_DEST)
DOWNLOAD_DEST := $(UNZIP_DEST)/$(DEPLIBNAME).tar.gz

LINKLIBS := -L$(REAL_DEST)
CGO_LDFLAGS := $(LINKLIBS) -Wl,-rpath,@loader_path -Wl,-rpath,$(REAL_DEST)
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 2bd3226

Please sign in to comment.