1 下载源码
访问strace主页下载源码包;这里以5.17版本为例。
wget https://github.com/strace/strace/releases/download/v5.17/strace-5.17.tar.xz
2 编译
tar xf strace-5.17.tar.xz
cd strace-5.17
./configure --build=i386-linux --host=arm-linux --target=arm-linux --prefix=$PWD/install LDFLAGS='-static -pthread'
# 使用静态链接
make
arm-linux-strip strace