/configure --help 输出详细的选项列表
常用选项如下:
--host
指需要运行的位置,默认为build,也就是本机编译出来的程序,由本机使用.比如当本机编译出来的程序,要在arm板上运行时.../configure --host=arm-linux
--target
指运行目标,比如gdb程序,通过在pc本机里运行,来调试开发板里的应用程序,所以--host设为build,--target.../configure --target=arm-linux
--prefix
安装路径前缀,指使用make install 后,生成的安装路径在哪
例如:
..../configure LDFLAGS=”-L/usr/include” //-L: lib
CC
指定编译器,默认为gcc、cc或者HOST-gcc
例如:
..../configure CC=arm-linux-gcc
暂时没了,以后遇到其它的,再来更新~