Skip to content

Commit aeec8a7

Browse files
authored
Fixed build of Go language bindings (#4825)
1 parent f6fa692 commit aeec8a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

language-bindings/go/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ cmake ${WAMR_DIR}/product-mini/platforms/${PLATFORM} \
2121
-DWAMR_BUILD_LIB_PTHREAD=1 -DWAMR_BUILD_DUMP_CALL_STACK=1 \
2222
-DWAMR_BUILD_MEMORY_PROFILING=1
2323
make -j ${nproc}
24-
cp -a libvmlib.a ${WAMR_GO_DIR}/packaged/lib/${PLATFORM}-${ARCH}
24+
cp -a libiwasm.a ${WAMR_GO_DIR}/packaged/lib/${PLATFORM}-${ARCH}
2525

2626
cd ${WAMR_GO_DIR}
2727
go test

language-bindings/go/wamr/cgo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
package wamr
77

88
// #cgo CFLAGS: -I${SRCDIR}/packaged/include
9-
// #cgo LDFLAGS: -lvmlib -lm
9+
// #cgo LDFLAGS: -liwasm -lm
1010
//
1111
// #cgo linux,amd64 LDFLAGS: -Wl,-rpath,${SRCDIR}/packaged/lib/linux-amd64 -L${SRCDIR}/packaged/lib/linux-amd64
1212
// #cgo linux,arm64 LDFLAGS: -Wl,-rpath,${SRCDIR}/packaged/lib/linux-aarch64 -L${SRCDIR}/packaged/lib/linux-aarch64

0 commit comments

Comments
 (0)