Skip to content

Commit

Permalink
Add rpath lookup for pwd libwasmvm (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtps committed Apr 9, 2021
1 parent 9040a44 commit 0a1ca18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ PACKAGES := $(shell go list ./... 2>/dev/null || true)
PACKAGES_NOSIMULATION := $(filter-out %/simulation%,$(PACKAGES))
PACKAGES_SIMULATION := $(filter %/simulation%,$(PACKAGES))

LEVELDB_PATH := $(shell brew --prefix leveldb 2>/dev/null || echo "$(HOME)/Cellar/leveldb/1.22/include")
CGO_CFLAGS := -I$(LEVELDB_PATH)/include
CGO_LDFLAGS := -L$(LEVELDB_PATH)/lib
LEVELDB_PATH = $(shell brew --prefix leveldb 2>/dev/null || echo "$(HOME)/Cellar/leveldb/1.22/include")
CGO_CFLAGS = -I$(LEVELDB_PATH)/include
CGO_LDFLAGS = "-L$(LEVELDB_PATH)/lib -Wl,-rpath,\$$ORIGIN"

BINDIR ?= $(GOPATH)/bin
BUILDDIR ?= $(CURDIR)/build
Expand Down

0 comments on commit 0a1ca18

Please sign in to comment.