LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 936|回复: 2

在LFS6.3上编译busybox1.6.1失败

[复制链接]
发表于 2008-3-26 11:45:36 | 显示全部楼层 |阅读模式
我在做好的LFS系统上,编译busybox,make的时候出现错误

root:/opt/busybox-1.6.1# make
  CC      applets/applets.o
applets/applets.c:20:2: warning: #warning Static linking against glibc produces buggy executables
applets/applets.c:21:2: warning: #warning (glibc does not cope well with ld --gc-sections).
applets/applets.c:22:2: warning: #warning See sources.redhat.com/bugzilla/show_bug.cgi?id=3400
applets/applets.c:23:2: warning: #warning Note that glibc is unsuitable for static linking anyway.
applets/applets.c:24:2: warning: #warning If you still want to do it, remove -Wl,--gc-sections
applets/applets.c:25:2: warning: #warning from top-level Makefile and remove this warning.
applets/applets.c:26:2: error: #error Aborting compilation.
make[1]: *** [applets/applets.o] Error 1
make: *** [applets] Error 2


我在makefile里把-Wl,--gc-sections这个去掉了,还是会出错。
这个应该怎么改?谢谢。
发表于 2008-4-8 15:15:53 | 显示全部楼层
我编译busybox1.6的静态版本,也有同样的问题?楼主解决了没有?
回复 支持 反对

使用道具 举报

发表于 2008-4-9 13:31:13 | 显示全部楼层
做 initrd 的话用 1.01 就够了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表