Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 376717

Summary: media-libs/sdl-mixer-1.2.11-r1 ignores CFLAGS/LDFLAGS during linking, breaks portage-multilib
Product: Gentoo Linux Reporter: Nathan Phillip Brink (binki) (RETIRED) <binki>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 306835    
Attachments: sdl-mixer-1.2.11-r1-build.log
emerge --info
sdl-mixer-1.2.11-multilib.patch

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.