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 277

Summary: Building with dynamic lib loading still links to libs at load time
Product: SDL_mixer Reporter: Peter Mulholland <darkmatter>
Component: miscAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: minor    
Priority: P2    
Version: unspecified   
Hardware: PowerPC   
OS: Mac OS X (All)   

Description Peter Mulholland 2006-07-10 19:34:12 UTC
I noticed by examining the resulting libSDL_mixer.dylib with otool -L, even when built with dynamic loading of OGG Vorbis, that the library binaryu still specifies dependancies on libogg, libvorbis and libvorbisfile.

Surely this defeats the point of loading these libs at run time? This would be a great bonus on OS X as it would avoid having to use install_name_tool when setting up your app bundle with the dylibs included, due to Apple's stupidity in hard-coding lib paths into the binaries!

I build SDL_mixer using the gcc-fat.sh script as the compiler. Could this be related? It doesn't seem so to me, it seems more like a ./configure issue
Comment 1 Ryan C. Gordon 2007-02-12 21:11:33 UTC
Dynamic loading was forcibly disabled in the configure script on Mac OS X...so it wasn't that it was loading it at runtime and also explicitly linking against it, it's that it was ONLY linking explicitly against it.

I've corrected this in Subversion now, for both Ogg Vorbis and SMPEG.

Fixed in svn revision #2959.

--ryan.