mirror of
https://github.com/logos-storage/logos-storage-go-bindings-example.git
synced 2026-01-04 06:23:07 +00:00
Try to fix macos
This commit is contained in:
parent
d2bf07db24
commit
c1de77fe8e
11
Makefile
11
Makefile
@ -1,9 +1,16 @@
|
|||||||
# Destination folder for the downloaded libraries
|
# Destination folder for the downloaded libraries
|
||||||
LIBS_DIR := $(abspath ./libs)
|
LIBS_DIR := $(abspath ./libs)
|
||||||
|
|
||||||
|
UNAME_S := $(shell uname -s)
|
||||||
|
|
||||||
# Flags for CGO to find the headers and the shared library
|
# Flags for CGO to find the headers and the shared library
|
||||||
CGO_CFLAGS := -I$(LIBS_DIR)
|
ifeq ($(UNAME_S),Darwin)
|
||||||
CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,$(LIBS_DIR)
|
CGO_CFLAGS := -I$(LIBS_DIR)
|
||||||
|
CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,@executable_path/./libs
|
||||||
|
else
|
||||||
|
CGO_CFLAGS := -I$(LIBS_DIR)
|
||||||
|
CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,$(LIBS_DIR)
|
||||||
|
endif
|
||||||
|
|
||||||
# Configuration for fetching the right binary
|
# Configuration for fetching the right binary
|
||||||
OS ?= "linux"
|
OS ?= "linux"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user