现在的位置: 首页 > 综合 > 正文

Cross Compile lmbench

2013年11月03日 ⁄ 综合 ⁄ 共 513字 ⁄ 字号 评论关闭

[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

抱歉!评论已关闭.