From cfeeb3fc294d1655bde7dc4554aea5ad284e660d Mon Sep 17 00:00:00 2001 From: Arnaud Date: Wed, 15 Oct 2025 12:15:38 +0200 Subject: [PATCH] Debug --- Makefile | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 3260c27..a965338 100644 --- a/Makefile +++ b/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)"