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 1419 - SDL_libgl2D.c breaks ndk-build
Summary: SDL_libgl2D.c breaks ndk-build
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: HG 2.0
Hardware: All Android (All)
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-15 10:43 UTC by Philip Taylor
Modified: 2012-02-15 18:11 UTC (History)
0 users

See Also:


Attachments
only enable code if SDL_VIDEO_RENDER_NDS (1.64 KB, patch)
2012-02-15 10:43 UTC, Philip Taylor
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Taylor 2012-02-15 10:43:47 UTC
Created attachment 821 [details]
only enable code if SDL_VIDEO_RENDER_NDS

render/nds/SDL_libgl2D.c unconditionally includes NDS-only code. SDL's Android.mk compiles source files matching

  $(wildcard $(LOCAL_PATH)/src/render/*/*.c)

which includes that file, causing build errors when running ndk-build.
Comment 1 Sam Lantinga 2012-02-15 18:11:54 UTC
Fixed, thanks!
http://hg.libsdl.org/SDL/rev/d88e5195dee3