We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2bf07d commit c1de77fCopy full SHA for c1de77f
Makefile
@@ -1,9 +1,16 @@
1
# Destination folder for the downloaded libraries
2
LIBS_DIR := $(abspath ./libs)
3
4
+UNAME_S := $(shell uname -s)
5
+
6
# Flags for CGO to find the headers and the shared library
-CGO_CFLAGS := -I$(LIBS_DIR)
-CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,$(LIBS_DIR)
7
+ifeq ($(UNAME_S),Darwin)
8
+ CGO_CFLAGS := -I$(LIBS_DIR)
9
+ CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,@executable_path/./libs
10
+else
11
12
+ CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,$(LIBS_DIR)
13
+endif
14
15
# Configuration for fetching the right binary
16
OS ?= "linux"
0 commit comments