【轉載請注明】https://www.cnblogs.com/pepetang/p/13267380.html
交叉編譯gperftools,參考https://blog.csdn.net/mynameislu/article/details/27321727
交叉編譯perl,需要的補丁包參考http://arsv.github.io/perl-cross/usage.html,以下為過程記錄:
0)下載源碼:
官方源碼版本:5.32.0
補丁包版本:1.3.4
1)打補丁:將補丁包中的文件覆蓋到官方源碼中
2)執行以下命令:
$ ./configure --prefix=/opt/arm-linux/usr/ --target=arm-linux --target-tools-prefix=arm-linux-gnueabi- $ make $ make install