Cross Compile lmbench

[Author: Bo Shen <[email protected]>]


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


你可能感兴趣的:(Cross Compile lmbench)