mirror of
https://github.com/logos-storage/logos-storage-go-bindings-example.git
synced 2026-01-03 22:13:07 +00:00
Debug
This commit is contained in:
parent
88273120d5
commit
f0715d100d
4
Makefile
4
Makefile
@ -38,7 +38,7 @@ endif
|
||||
|
||||
build:
|
||||
ifeq ($(UNAME_S),Darwin)
|
||||
install_name_tool -id @rpath/libcodex.dylib $(LIBS_DIR)/libcodex.dylib
|
||||
# install_name_tool -id @rpath/libcodex.dylib $(LIBS_DIR)/libcodex.dylib
|
||||
endif
|
||||
CGO_ENABLED=1 CGO_CFLAGS="$(CGO_CFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" go build -o $(BIN_NAME) main.go
|
||||
|
||||
@ -47,7 +47,7 @@ ifeq ($(OS),Windows_NT)
|
||||
pwsh -File $(CURDIR)/.github/scripts/run-windows.ps1 -BinaryName $(BIN_NAME)
|
||||
else ifeq ($(UNAME_S),Darwin)
|
||||
# Instead of relying on install_name_tool, we can define DYLD_LIBRARY_PATH
|
||||
# DYLD_LIBRARY_PATH=$(LIBS_DIR) ./$(BIN_NAME)
|
||||
DYLD_LIBRARY_PATH=$(LIBS_DIR) ./$(BIN_NAME)
|
||||
./$(BIN_NAME)
|
||||
else
|
||||
./$(BIN_NAME)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user