strace调试工具编译移植

 源码下载:https://github.com/strace/strace/releases/tag/v4.18(使用的较老版本,最新版 5.4 编译时依赖较多,最终博主放弃使用)

 

【 编译步骤 】

1 ./bootstrap
2 ./configure --host=aarch64-linux-gnu --target=aarch64-linux-gnu --prefix=/home/Files/strace
3 make
4 make install

【 生成文件 】

# ls /home/Files/strace/bin/
    strace  strace-graph  strace-log-merge

【 查看依赖库 】

0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
确保开发板中存在 libc.so.6 库

【 移植至嵌入式开发板,并输出版本 】

# strace -V
strace -- version UNKNOWN
Copyright (c) 1991-2019 The strace developers <https://strace.io>.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 

原文地址:https://www.cnblogs.com/GyForever1004/p/11984416.html