1、wget http://rpm5.org/files/popt/popt-1.16.tar.gz
./configure&&make & sudo make install
2、wget http://ftp.gnu.org/gnu/binutils/binutils-2.25.tar.gz
./configure&&make & sudo make install
3、wget http://ftp.gnu.org/gnu/binutils/binutils-2.25.tar.gz
./configure --with-sysroots
make clean
make
sudo make install
4、
cd libiberty //进入该目录
./configure //完成之后会有个Makefile文件产生
vi Makefile //编辑该文件,找到并修改该行为: CFLAGS = -g -O2 -fPPIC 保存
make clean
make
gcc -shared *.o -o libiberty.so //生成.so文件,把该文件拷到/usr/lib中
sudo cp libiberty.so /usr/lib/libiberty.so
5、
cd bfd
./configure --enable-shared
make clean
make
sudo make install
6、export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
7、
http://sourceforge.net/projects/oprofile/files/oprofile/
./configure&&make & sudo make install
8、使用
opreport -l ./test
网友评论