当前位置: 首页 > 工具软件 > Lmbench > 使用案例 >

Cross Compile lmbench

经福
2023-12-01

[Author: Bo Shen <voice.shen@gmail.com>]


Original Page: http://www.bitmover.com/lmbench/

1. get the source code

    $ wget http://www.bitmover.com/lmbench/lmbench3.tar.gz

2. cross compile it

   $ tar -zxvf lmbench3.tar.gz

   $ cd lmbench3

   $ modify the src/Makefile

          2.1 static compile option

                  lmbench: $(UTILS)
                     @env CFLAGS="-O -static" MAKE="$(MAKE)" MAKEFLAGS="$(MAKEFLAGS)" CC="$(CC)" OS="$(OS)" ../scripts/build all

           2.2 don't compile bk.ver

                  $O/lmbench : ../scripts/lmbench #bk.ver

    $ make OS=linux CC=arm-none-linux-gnueabi-gcc


 类似资料:

相关阅读

相关文章

相关问答