From 55dd14f97e81df9a1c128bfcf9c4c1e5a5ae84a2 Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Mon, 14 Oct 2019 17:56:06 +0200 Subject: [PATCH] Change name of lib in Makefile and cgo --- Makefile | 4 ++-- api/api.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a08e991..ca92e4c 100644 --- a/Makefile +++ b/Makefile @@ -6,9 +6,9 @@ build: build-rust build-go build-rust: cargo build --release - cp target/release/libgo_cosmwasm.so api + cp target/release/libgo_rust_demo.so api # this pulls out ELF symbols, 80% size reduction! - strip api/libgo_cosmwasm.so + strip api/libgo_rust_demo.so build-go: go build . diff --git a/api/api.go b/api/api.go index 175474b..1110f79 100644 --- a/api/api.go +++ b/api/api.go @@ -1,6 +1,6 @@ package api -// #cgo LDFLAGS: -Wl,-rpath,${SRCDIR} -L${SRCDIR} -lgo_cosmwasm +// #cgo LDFLAGS: -Wl,-rpath,${SRCDIR} -L${SRCDIR} -lgo_rust_demo // #include // #include "bindings.h" import "C"