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 - linking fails if cocoa is disabled (mac-ppc) - fix included
Summary: linking fails if cocoa is disabled (mac-ppc) - fix included
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: HG 2.0
Hardware: x86_64 Mac OS X 10.5 (PPC)
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-06 05:05 UTC by Martin Gerhardy
Modified: 2011-11-06 14:06 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 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.