This commit is contained in:
Arnaud 2025-10-15 14:58:00 +02:00
parent 6ef24504c9
commit 2fe39256c1
No known key found for this signature in database
GPG Key ID: 20E40A5D3110766F

View File

@ -35,9 +35,9 @@ fetch:
unzip -o -qq $(LIBS_DIR)/codex-${OS}-${ARCH}.zip -d $(LIBS_DIR)
rm -f $(LIBS_DIR)/*.zip
# Update the path to the shared library on macOS
ifeq ($(UNAME_S),Darwin)
install_name_tool -id @rpath/libcodex.dylib $(LIBS_DIR)/libcodex.dylib
endif
# ifeq ($(UNAME_S),Darwin)
# install_name_tool -id @rpath/libcodex.dylib $(LIBS_DIR)/libcodex.dylib
# endif
build:
CGO_ENABLED=1 CGO_CFLAGS="$(CGO_CFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" go build -o $(BIN_NAME) main.go