Busybox compilation error with static build

Denis Vlasenko vda.linux at googlemail.com
Mon Mar 12 10:01:54 PDT 2007


Hi,

On Monday 12 March 2007 03:57, Sina Mallick wrote:
> applets/applets.c:20:2: error: #warning Static linking against glibc
> produces buggy executables
> applets/applets.c:21:2: error: #warning (glibc does not cope well with ld
> --gc-sections).
> applets/applets.c:22:2: error: #warning See
> sources.redhat.com/bugzilla/show_bug.cgi?id=3400
> applets/applets.c:23:2: error: #warning Note that glibc is unsuitable for
> static linking anyway.
> applets/applets.c:24:2: error: #warning If you still want to do it, remove
> -Wl,--gc-sections
> applets/applets.c:25:2: error: #warning from top-level Makefile and remove
> this warning.

Static linking against glibc produces buggy executables
(glibc does not cope well with ld --gc-sections).
See sources.redhat.com/bugzilla/show_bug.cgi?id=3400
Note that glibc is unsuitable for static linking anyway.
If you still want to do it, remove -Wl,--gc-sections
from top-level Makefile and remove this warning.
--
vda


More information about the busybox mailing list