How to create arm-based .so file without RPC on my laptop (ubuntu)

It works! Thanks!
As you said above, just only need to change cc into my cross compiler route as show below

module.export_library("depress_deploy.so", contrib.cc.create_shared, cc="/opt/arm/bin/armeb-linux-gnueabi-g++")

So the target in my code should also be changed into the same triple as cc, is it right?

target= "llvm -target=armeb-linux-gnueabi"