mirror of
https://github.com/logos-storage/logos-storage-go-bindings-example.git
synced 2026-05-20 08:09:30 +00:00
Try executable_path on macos
This commit is contained in:
parent
65d11e40f7
commit
0051b4e9e2
18
Makefile
18
Makefile
@ -3,16 +3,14 @@ LIBS_DIR := $(abspath ./libs)
|
|||||||
|
|
||||||
UNAME_S := $(shell uname -s)
|
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
|
||||||
# ifeq ($(UNAME_S),Darwin)
|
ifeq ($(UNAME_S),Darwin)
|
||||||
# CGO_CFLAGS := -I$(LIBS_DIR)
|
CGO_CFLAGS := -I$(LIBS_DIR)
|
||||||
# CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,@executable_path/./libs
|
CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,@executable_path/./libs
|
||||||
# else
|
else
|
||||||
# CGO_CFLAGS := -I$(LIBS_DIR)
|
CGO_CFLAGS := -I$(LIBS_DIR)
|
||||||
# CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,$(LIBS_DIR)
|
CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,$(LIBS_DIR)
|
||||||
# endif
|
endif
|
||||||
CGO_CFLAGS := -I$(LIBS_DIR)
|
|
||||||
CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,$(LIBS_DIR)
|
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
BIN_NAME := example.exe
|
BIN_NAME := example.exe
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user