[PATCH] build system: Specify '-nostldlib' when linking to .o files.
Denys Vlasenko
vda.linux at googlemail.com
Wed Apr 2 10:13:49 UTC 2014
On Sat, Mar 29, 2014 at 9:02 PM, Drew Moseley <drew_moseley at mentor.com> wrote:
> For certain cross build scenarios the LD variable is overridden
> to use the gcc executive to ensure all the target tuning parameters
> are used. In these cases, the executive errors out as shown below
> but since this step is only linking to a .o file the standard libs
> are not needed.
>
> $ make LD=gcc applets/built-in.o
> LD applets/built-in.o
> /usr/bin/ld: cannot find -lgcc_s
> /usr/bin/ld: cannot find -lgcc_s
> collect2: ld returned 1 exit status
> make[1]: *** [applets/built-in.o] Error 1
> make: *** [applets_dir] Error 2
Applied, thanks!
More information about the busybox
mailing list