diff --git a/go/Makefile b/go/Makefile index ae82e9d..c00e346 100644 --- a/go/Makefile +++ b/go/Makefile @@ -14,10 +14,10 @@ LDFLAGS += $(addprefix -L, $(MILVUS_STORAGE_LD_DIR)) .PHONY: build build: - CGO_CFLAGS="$(CPPFLAGS)" CGO_LDFLAGS="$(LDFLAGS)" go build ./... + CGO_CFLAGS="$(CPPFLAGS)" CGO_LDFLAGS="$(LDFLAGS) -lmilvus-storage" go build ./... test: - CGO_CFLAGS="$(CPPFLAGS)" CGO_LDFLAGS="$(LDFLAGS) -Wl,-rpath,$(MILVUS_STORAGE_LD_DIR)" go test -timeout 30s ./... + CGO_CFLAGS="$(CPPFLAGS)" CGO_LDFLAGS="$(LDFLAGS) -Wl,-rpath,$(MILVUS_STORAGE_LD_DIR) -lmilvus-storage" go test -timeout 30s ./... proto: mkdir -p proto/manifest_proto mkdir -p proto/schema_proto diff --git a/go/packed/packed.go b/go/packed/packed.go index c84e605..4c71805 100644 --- a/go/packed/packed.go +++ b/go/packed/packed.go @@ -15,8 +15,6 @@ package packed /* -#cgo LDFLAGS: -lmilvus-storage - #include #include "milvus-storage/packed/reader_c.h" #include "arrow/c/abi.h"