|author||Derek Foreman <email@example.com>||2012-05-08 19:40:49 (GMT)|
|committer||Derek Foreman <firstname.lastname@example.org>||2012-05-08 19:40:49 (GMT)|
Documentation fixes regarding CFLAGS, CPPFLAGS and CXXFLAGStesting_cxxflags
1 files changed, 14 insertions, 3 deletions
@@ -50,9 +50,20 @@ Multiple modules can be instantiated with a single command line
Adding resources to modules (a module must be declared first!):
-:SOURCES followed by any number of source files
--:CFLAGS followed by any number of cflags
--:CPPFLAGS followed by any number of cppflags
- -Werror is silently removed!
+-:CFLAGS followed by any number of flags to pass to the C compiler
+-:CXXFLAGS followed by any number of flags to pass to the C++ compiler
+-:CPPFLAGS followed by any number of C pre-processor flags
+ CPPFLAGS will be passed to both the C and C++ compiler
+ CFLAGS will also be passed to *both* the C and C++ compiler
+ CXXFLAGS will be passed to just the C++ compiler
+ Android uses a different convention - don't be surprised when your
+ CXXFLAGS end up in LOCAL_CPPFLAGS in an Android.mk
+ There is no way to pass flags to just the C compiler in the Android
+ build system.
+ some flags are silently removed: -Werror -pthread
-:LDFLAGS followed by any number of linker directives to be processed...
-l<foo> will be added as lib<foo> to LOCAL_SHARED_LIBRARIES