[Buildroot] [PATCH] audiofile: does not build with static-only

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Mon May 26 09:34:28 UTC 2014


Dear Gustavo Zacarias,

On Sat, 24 May 2014 20:13:19 -0300, Gustavo Zacarias wrote:

> As we discussed with Thomas on IRC i've been digging and testing a bit
> and promised to write about my assorted notes for the static dilemma:
> 
> 1) --static isn't the documented way to do it, not for libtool, ld or
> gcc. Just reverting it makes audiofile happy (patch done).
> 
> 2) --static (or the correct -static IMHO) is just added to LDFLAGS, that
> won't help generic packages that link directly so it should live in
> CFLAGS/CXXFLAGS as well (patch done).

--static or -static ?

> 3) BR2_PREFER_STATIC_LIB should be renamed and it's description changed
> accordingly, we don't prefer, we want.
> There's no configuration granularity possible to say "A, B, C dyn and D
> static" and we really don't want to walk that path (Thomas mentioned he
> has something done about this already).

Yes. But it needs some testing. I'll post this for 2014.08.

> 7) toolchain-external seems to be copying .so files to staging and
> causing confusion for a mpd w/audiofile project: /usr/bin/mpd results in
> a static binary, however some accesory binaries are not (example: gdbus,
> gettext, others).

Hum, ok, I think I should have a look at this one.

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



More information about the buildroot mailing list