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 - [PATCH] Add 'Libs.private' field to pkg-config file
Summary: [PATCH] Add 'Libs.private' field to pkg-config file
Status: NEW
Alias: None
Product: SDL_mixer
Classification: Unclassified
Component: misc (show other bugs)
Version: 1.2.12
Hardware: All All
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-01 01:50 UTC by Rodrigo Rebello
Modified: 2016-03-01 04:35 UTC (History)
0 users

See Also:


Attachments
Patch to add 'Libs.private' field to pkg-config file (1.40 KB, patch)
2016-03-01 01:50 UTC, Rodrigo Rebello
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.