因為
這個人 http://benno.id.au/blog/2007/11/18/android-runtime-strace很好心的放了port 好,還是 static link 的 strace。
所以download 下來就可以 run 了 (其實我把他 放進 system/bin 中)。
build strace for android 的方法 follow
這一篇
strace 是用 autoconf ,所以 configure script 看不懂。
cross compile for android 大概是:
build 一個 arm-linux , static link 的 strace。
所以
- 設好 cross toolchain 的 path
- 設好 cross toolchain 的 name : export CC=/opt/....
- configure -host=arm-linux
- configure 完會產生 Makefile,把 CFLAGS 加上 -static
然後就可以 make 了
沒有留言:
張貼留言