From 0f86992c5b84dead4cb225efe3bc407bf42f1bcd Mon Sep 17 00:00:00 2001 From: Arnaud Date: Wed, 15 Oct 2025 12:07:28 +0200 Subject: [PATCH] debug --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d1cb7e3..d1d52dd 100644 --- a/Makefile +++ b/Makefile @@ -39,11 +39,13 @@ build: ls -l $(LIBS_DIR) go env CGO_LDFLAGS CGO_ENABLED=1 CGO_CFLAGS="$(CGO_CFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" go build -o $(BIN_NAME) main.go - run: ifeq ($(OS),Windows_NT) pwsh -Command "Copy-Item libs\libcodex.dll ." pwsh -Command ".\$(BIN_NAME)" +else ifeq ($(UNAME_S),Darwin) + otool -L libs/libcodex.dylib + DYLD_LIBRARY_PATH=$(LIBS_DIR) ./$(BIN_NAME) else ./$(BIN_NAME) endif