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 177

Summary: Change "-framework FOO" to "-Wl,-framework,FOO"
Product: SDL Reporter: Max Horn <max>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: enhancement    
Priority: P2    
Version: HG 1.2   
Hardware: All   
OS: Other   
Attachments: Patch for configure.in

Description Max Horn 2006-03-22 12:40:07 UTC
The attached patch changes configure.in to use "-framework FOO" instead of "-Wl,-framework,FOO".

This avoid some issues with certain versions of libtool that do not handle -framework properly.
Some versions of libtool will try to reorder the two parts of the option, or render the 2nd part of the argument to the relative path of a non-existent library. 

Note: It is not enough if SDL uses a version of libtool that does this correctly, because these -framework options show up in "sdl-config --libs". Hence, some 3rd party apps which still ship with an old libtool have troubles compiling under Mac OS X.
Comment 1 Max Horn 2006-03-22 12:40:27 UTC
Created attachment 90 [details]
Patch for configure.in
Comment 2 Sam Lantinga 2006-03-24 00:20:31 UTC
This patch is in CVS, along with a clean version of ltmain.sh without the framework hacks.

Thanks!