sdl_mixer: add patch to fix SDL_mixer.pc for static linking
authorRodrigo Rebello <rprebello@gmail.com>
Wed, 2 Mar 2016 01:58:13 +0000 (22:58 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 6 Mar 2016 14:59:25 +0000 (15:59 +0100)
commit770965edfcf0463e681b0a5fb48757d16dc37751
tree6d3cf8a2630439291e7d1921faa73cba5182cf39
parent74458d0f44a8e0477f9315d189a629d2a36c4912
sdl_mixer: add patch to fix SDL_mixer.pc for static linking

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@gmail.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Reviewed-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/sdl_mixer/0001-Add-Libs.private-field-to-pkg-config-file.patch [new file with mode: 0644]
package/sdl_mixer/sdl_mixer.mk