Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] sdl_mixer: fix static linking issue
Date: Thu, 8 Dec 2016 22:06:02 +0100	[thread overview]
Message-ID: <20161208220602.37cfb553@free-electrons.com> (raw)
In-Reply-To: <20161208172331.GA13013@waldemar-brodkorb.de>

Hello,

On Thu, 8 Dec 2016 18:23:31 +0100, Waldemar Brodkorb wrote:

> +Pass LDFLAGS while creating binaries.
> +
> +Fixes following linking error with uClibc-ng:
> +br/output/host/usr/lib/gcc/powerpc-buildroot-linux-uclibc/5.4.0/libgcc.a(unwind-dw2-fde-dip.o): In function `_Unwind_Find_FDE':
> +br/output/build/host-gcc-final-5.4.0/build/powerpc-buildroot-linux-uclibc/libgcc/../../../libgcc/unwind-dw2-fde-dip.c:465: undefined reference to `dl_iterate_phdr'
> +collect2: error: ld returned 1 exit status
> +
> +Since uClibc-ng 1.0.18 a circular dependency between libc and libgcc
> +exist, when static linking is used. It can be resolved by the compiler
> +when -static is correctly passed in the linking step.

musl is also using a "everything in libc" policy. Does this problem
also occurs with musl? If not, why?

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

  reply	other threads:[~2016-12-08 21:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-08 17:23 [Buildroot] [PATCH v2] sdl_mixer: fix static linking issue Waldemar Brodkorb
2016-12-08 21:06 ` Thomas Petazzoni [this message]
2016-12-09  4:27   ` Waldemar Brodkorb
2016-12-09  9:55     ` Thomas Petazzoni
2016-12-10 15:00 ` 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=20161208220602.37cfb553@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.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