Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] libaio: Fix library creation for ARC with -Os
Date: Tue, 18 Sep 2018 11:26:57 +0200	[thread overview]
Message-ID: <20180918112657.7d1b9d28@windsurf> (raw)
In-Reply-To: <aae1bc5da723d9dd98ddd4dcc7868e4dacb4b6f8.camel@synopsys.com>

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.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

  reply	other threads:[~2018-09-18  9:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-17 20:43 [Buildroot] [PATCH] libaio: Fix library creation for ARC with -Os Alexey Brodkin
2018-09-18  7:36 ` Thomas Petazzoni
2018-09-18  8:03   ` Alexey Brodkin
2018-09-18  9:15     ` Thomas Petazzoni
2018-09-18  9:17       ` Alexey Brodkin
2018-09-18  9:26         ` Thomas Petazzoni [this message]
2018-09-18  9:30           ` Alexey Brodkin
     [not found]             ` <098ECE41A0A6114BB2A07F1EC238DE89667FD144@de02wembxa.internal.synopsys.com>
2018-09-18 12:44               ` Alexey Brodkin
2018-09-18 13:58                 ` Thomas Petazzoni
2018-09-28 13:36                   ` Alexey Brodkin
2018-09-18  9:20       ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180918112657.7d1b9d28@windsurf \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox