[Buildroot] [PATCH v3 1/2] sdl_mixer: add patch to fix SDL_mixer.pc for static linking
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Sun Mar 6 15:00:24 UTC 2016
Dear Rodrigo Rebello,
On Tue, 1 Mar 2016 22:58:13 -0300, Rodrigo Rebello wrote:
> A 'Libs.private' field needs to be present and properly defined in the
> pkg-config file in order for static linking against SDL_mixer to work.
>
> Besides adding the mentioned field, the included patch also modifies
> configure.in so that EXTRA_LDFLAGS (which is now also used as the value
> of 'Libs.private') no longer includes SDL_LIBS. This is done so as to
> prevent libraries required by SDL from being listed twice when
> 'pkg-config --libs --static SDL_mixer' is run (they're already shown
> because of the 'Requires: sdl' line in SDL_mixer.pc). Makefile.in is
> adjusted accordingly as well.
>
> Also enable autoreconf for this package since we're patching
> configure.in.
>
> Signed-off-by: Rodrigo Rebello <rprebello at gmail.com>
> ---
> Changes v1 -> v2:
> - Add host-autoconf host-automake and host-libtool to
> SDL_MIXER_DEPENDENCIES (Thomas Petazzoni)
Both patches applied to master! Thanks to Arnout and Romain for the
review!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list