We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3278

Summary: [PATCH] Add 'Libs.private' field to pkg-config file
Product: SDL_mixer Reporter: Rodrigo Rebello <rprebello>
Component: miscAssignee: Ryan C. Gordon <icculus>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 1.2.12   
Hardware: All   
OS: All   
Attachments: Patch to add 'Libs.private' field to pkg-config file

Description Rodrigo Rebello 2016-03-01 01:50:35 UTC
Created attachment 2388 [details]
Patch to add 'Libs.private' field to pkg-config file

In order to support static linking, SDL_mixer.pc should include a 'Libs.private' field listing all the libraries that SDL_mixer requires. This patch adds such a field.
Comment 1 Rodrigo Rebello 2016-03-01 04:35:02 UTC
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 also adjusted accordingly.