mirror of
https://github.com/logos-storage/logos-storage-go-bindings-example.git
synced 2026-01-02 13:33:12 +00:00
Debug
This commit is contained in:
parent
0ed267cdb6
commit
cfeeb3fc29
13
Makefile
13
Makefile
@ -1,16 +1,9 @@
|
||||
# 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
|
||||
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
|
||||
CGO_CFLAGS := -I$(LIBS_DIR)
|
||||
CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,$(LIBS_DIR)
|
||||
|
||||
ifeq ($(OS),Windows_NT)
|
||||
BIN_NAME := example.exe
|
||||
@ -33,7 +26,7 @@ fetch:
|
||||
unzip -o -qq $(LIBS_DIR)/codex-${OS}-${ARCH}.zip -d $(LIBS_DIR)
|
||||
rm -f $(LIBS_DIR)/*.zip
|
||||
ifeq ($(UNAME_S),Darwin)
|
||||
install_name_tool -id @rpath/libcodex.dylib libs/libcodex.dylib
|
||||
install_name_tool -id @rpath/libcodex.dylib $(LIBS_DIR)/libcodex.dylib
|
||||
endif
|
||||
build:
|
||||
@echo "CGO_CFLAGS=$(CGO_CFLAGS)"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user