makefile and busybox

来源:互联网 发布:mac解压rar用哪个app 编辑:程序博客网 时间:2024/06/05 19:21


http://www.cnblogs.com/jevan/archive/2011/03/20/1989199.html

 

今天在编译busybox1.16的时候,执行make命令,报错,错误信息:437 “mixed implicit and normal rules”,翻译为中文:混合的和隐含普通规则。起初以为是busybox包的问题,从官网上下载了低版本1.13,报同样的错误,google后发现,是由于我的系统的make工具太新(系统:fedora14),make的旧版规则已经无法兼容新版。按照以下方式,问题得到解决:

      在makefile中将437行代码

config %config: scripts_basic outputmakefile FORCE改:

%config: scripts_basic outputmakefile FORCE将1288行代码:
/ %/: prepare scripts FORCE(错)

改为:
%/: prepare scripts FORCE(对)
即可编译通过!
具体的行数请参照实际的make报错信息!

0 0
原创粉丝点击