Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 376717 - media-libs/sdl-mixer-1.2.11-r1 ignores CFLAGS/LDFLAGS during linking, breaks portage-multilib
Summary: media-libs/sdl-mixer-1.2.11-r1 ignores CFLAGS/LDFLAGS during linking, breaks ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: portage-multilib
  Show dependency tree
 
Reported: 2011-07-28 12:19 UTC by Nathan Phillip Brink (binki) (RETIRED)
Modified: 2011-07-30 17:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
sdl-mixer-1.2.11-r1-build.log (sdl-mixer-1.2.11-r1-build.log,28.37 KB, text/plain)
2011-07-28 12:19 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details
emerge --info (emerge--info.txt,8.04 KB, text/plain)
2011-07-28 12:19 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details
sdl-mixer-1.2.11-multilib.patch (sdl-mixer-1.2.11-multilib.patch,1.22 KB, patch)
2011-07-28 12:33 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2011-07-28 12:19:00 UTC
Created attachment 281253 [details]
sdl-mixer-1.2.11-r1-build.log

The final linking stage gets flags from something like $(pkg-config --cflags --libs sdl), ignoring the user's desired LDFLAGS/CFLAGS. In a normal autotools configuration, linking a final shared object or executable passes the user's CFLAGS and LDFLAGS to libtool.
Comment 1 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2011-07-28 12:19:22 UTC
Created attachment 281255 [details]
emerge --info
Comment 2 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2011-07-28 12:33:37 UTC
Created attachment 281261 [details, diff]
sdl-mixer-1.2.11-multilib.patch

Fixes the compilation issue for me on portage-multilib by adding CFLAGS and LDFLAGS to libtool's commandline when linking the final .so.
Comment 3 SpanKY gentoo-dev 2011-07-30 06:34:50 UTC
Comment on attachment 281261 [details, diff]
sdl-mixer-1.2.11-multilib.patch

really should get upstream to convert to automake.  but until then, patch looks fine ...
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2011-07-30 17:03:44 UTC
in portage.  thanks for the bug report and patch.