mirror of
https://github.com/logos-storage/logos-storage-go-bindings-example.git
synced 2026-01-07 07:53:07 +00:00
Debug
This commit is contained in:
parent
cfeeb3fc29
commit
3633146b09
10
Makefile
10
Makefile
@ -1,9 +1,15 @@
|
||||
# Destination folder for the downloaded libraries
|
||||
LIBS_DIR := $(abspath ./libs)
|
||||
|
||||
UNAME_S := $(shell uname -s)
|
||||
# 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)
|
||||
ifeq ($(UNAME_S),Darwin)
|
||||
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
|
||||
|
||||
ifeq ($(OS),Windows_NT)
|
||||
BIN_NAME := example.exe
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user