Skip to content

Commit

Permalink
Change name of lib in Makefile and cgo
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanfrey committed Oct 14, 2019
1 parent 6aedbad commit 55dd14f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down
2 changes: 1 addition & 1 deletion api/api.go
Original file line number Diff line number Diff line change
@@ -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 <stdlib.h>
// #include "bindings.h"
import "C"
Expand Down

0 comments on commit 55dd14f

Please sign in to comment.