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 1327

Summary: linking fails if cocoa is disabled (mac-ppc) - fix included
Product: SDL Reporter: Martin Gerhardy <martin.gerhardy>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: x86_64   
OS: Mac OS X 10.5 (PPC)   

Description Martin Gerhardy 2011-11-06 05:05:49 UTC
i ran ./configure --disable-video-cocoa and i got unresolved symbols in SDL_assert.o. here is the fix:


diff -r 3b33b82cdbac src/SDL_assert.c
--- a/src/SDL_assert.c	Thu Nov 03 11:51:47 2011 -0400
+++ b/src/SDL_assert.c	Sun Nov 06 14:04:20 2011 +0100
@@ -319,7 +319,7 @@
 #ifdef __WIN32__
     state = SDL_PromptAssertion_windows(data);
 
-#elif __MACOSX__
+#elif defined __MACOSX__ && defined SDL_VIDEO_DRIVER_COCOA
     /* This has to be done in an Objective-C (*.m) file, so we call out. */
     extern SDL_assert_state SDL_PromptAssertion_cocoa(const SDL_assert_data *);
     state = SDL_PromptAssertion_cocoa(data);
Comment 1 Ryan C. Gordon 2011-11-06 14:06:23 UTC
This is now hg changeset cb1f941ce38e, thanks!

--ryan.