LinuxSir.cn,穿越时空的Linuxsir!

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

静态编译busybox错误,大家来帮忙看看。

[复制链接]
发表于 2007-2-1 09:47:21 | 显示全部楼层 |阅读模式
#make
  SPLIT   include/autoconf.h -> include/config/*
  GEN     include/bbconfigopts.h
  HOSTCC  applets/usage
  GEN     include/usage_compressed.h
  CC      applets/applets.o
applets/applets.c:20:2: 错误:#warning Static linking against glibc produces buggy executables
applets/applets.c:21:2: 错误:#warning (glibc does not cope well with ld --gc-sections).
applets/applets.c:22:2: 错误:#warning See sources.redhat.com/bugzilla/show_bug.cgi?id=3400
applets/applets.c:23:2: 错误:#warning Note that glibc is unsuitable for static linking anyway.
applets/applets.c:24:2: 错误:#warning If you still want to do it, remove -Wl,--gc-sections
applets/applets.c:25:2: 错误:#warning from top-level Makefile and remove this warning.
make[1]: *** [applets/applets.o] 错误 1
make: *** [applets] 错误 2
 楼主| 发表于 2007-2-1 09:57:46 | 显示全部楼层
环境: FC5
busybox-1.4.0
回复 支持 反对

使用道具 举报

发表于 2007-2-1 13:03:22 | 显示全部楼层
不是有 warning 信息嘛,照着它试试
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-2-1 14:45:15 | 显示全部楼层
又查了一下,好像是新的glibc对静态编译的问题。不知怎么解决。难道必须用ulibc
回复 支持 反对

使用道具 举报

发表于 2007-2-1 19:51:29 | 显示全部楼层
remove -Wl,--gc-sections

这一步试过了么?如果可能最好还是不要用 glibc,毕竟嵌入式开发资源相对紧张,用 glibc 有点浪费。
回复 支持 反对

使用道具 举报

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

本版积分规则

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