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 - Building with dynamic lib loading still links to libs at load time
Summary: Building with dynamic lib loading still links to libs at load time
Status: RESOLVED FIXED
Alias: None
Product: SDL_mixer
Classification: Unclassified
Component: misc (show other bugs)
Version: unspecified
Hardware: PowerPC Mac OS X (All)
: P2 minor
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-10 19:34 UTC by Peter Mulholland
Modified: 2007-02-12 21:11 UTC (History)
0 users

See Also:


Attachments

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