diff --git a/wasmer/bridge.go b/wasmer/bridge.go index 93959da5..dfc03419 100644 --- a/wasmer/bridge.go +++ b/wasmer/bridge.go @@ -1,6 +1,5 @@ package wasmer -// #cgo LDFLAGS: -Wl,-rpath,${SRCDIR} -L${SRCDIR} -lwasmer_runtime_c_api // #include "./wasmer.h" // import "C" diff --git a/wasmer/libwasmer_runtime_c_api.a b/wasmer/libwasmer_runtime_c_api.a new file mode 100644 index 00000000..60867390 Binary files /dev/null and b/wasmer/libwasmer_runtime_c_api.a differ diff --git a/wasmer/wasmer_link_dynamic.go b/wasmer/wasmer_link_dynamic.go new file mode 100644 index 00000000..b7d5da37 --- /dev/null +++ b/wasmer/wasmer_link_dynamic.go @@ -0,0 +1,6 @@ +// +build !static_build + +package wasmer + +// #cgo LDFLAGS: -Wl,-rpath,${SRCDIR} -L${SRCDIR} -lwasmer_runtime_c_api +import "C" diff --git a/wasmer/wasmer_link_static.go b/wasmer/wasmer_link_static.go new file mode 100644 index 00000000..31a70fb6 --- /dev/null +++ b/wasmer/wasmer_link_static.go @@ -0,0 +1,6 @@ +// +build static_build + +package wasmer + +// #cgo LDFLAGS: -lm -ldl -lrt -L${SRCDIR} -lwasmer_runtime_c_api +import "C"