[Buildroot] [PATCH] libaio: Fix library creation for ARC with -Os
Alexey Brodkin
Alexey.Brodkin at synopsys.com
Tue Sep 18 09:30:31 UTC 2018
Cuper, Claus,
On Tue, 2018-09-18 at 11:26 +0200, Thomas Petazzoni wrote:
> Hello,
>
> On Tue, 18 Sep 2018 09:17:20 +0000, Alexey Brodkin wrote:
>
> > > Thank you, I do understand that passing LDFLAGS=-lgcc will add -lgcc to
> > > the link command line :-)
> > >
> > > The question is: why does libaio needs to be told explicitly to link
> > > against libgcc, and not any other package.
> > >
> > > And I believe the reason is because -nostdlib -nostartfiles are used.
> > > Why is libaio using those flags? Is there a good reason ?
> >
> > I tried removing those 2 as the first thing but it made no difference
> > until I added "-lgcc" explicitly.
>
> Then there is another toolchain bug, because linking against libgcc
> should be done automatically as soon as a libgcc feature gets used by
> the thing being compiled/linked.
What do you think about that?
-Alexey
More information about the buildroot
mailing list