This fixes the build to always define the ANDROID macro, and remove an empty -I from the compiler options.

The latter had the effect of removing the benefit of optimization settings, i.e. a typical compiler
command would look like:

   <toolchain-compiler> .... -Isources/<module-path> -I -O2 -g

The "-I -O2" was interpreted literally as "search in '-O2' directory, and the optimization was
never set to 2 (or 0 in case of debug mode).
This commit is contained in:
David 'Digit' Turner
2009-05-20 18:37:31 +02:00
parent 9b3f3f27fe
commit 93a4147f12
2 changed files with 4 additions and 2 deletions

View File

@@ -29,6 +29,10 @@ include $(BUILD_SYSTEM)/build-module.mk
# list of generated object files
LOCAL_OBJECTS :=
# always define ANDROID when building binaries
#
LOCAL_CFLAGS := -DANDROID $(LOCAL_CFLAGS)
#
# Add the default system shared libraries to the build
#