From 0ed267cdb69ce2ffc1c982948a9c14d8f08a4893 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Wed, 15 Oct 2025 12:12:23 +0200 Subject: [PATCH] Debug --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d1d52dd..3260c27 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,9 @@ fetch: @curl -fSL --create-dirs -o $(LIBS_DIR)/codex-${OS}-${ARCH}.zip ${LATEST_URL} 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 +endif build: @echo "CGO_CFLAGS=$(CGO_CFLAGS)" @echo "CGO_LDFLAGS=$(CGO_LDFLAGS)" @@ -44,8 +46,8 @@ 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) +# DYLD_LIBRARY_PATH=$(LIBS_DIR) ./$(BIN_NAME) + ./$(BIN_NAME) else ./$(BIN_NAME) endif