| author | Derek Foreman <derek.foreman@collabora.co.uk> | 2012-05-08 19:40:49 (GMT) |
|---|---|---|
| committer | Derek Foreman <derek.foreman@collabora.co.uk> | 2012-05-08 19:40:49 (GMT) |
| commit | a1702fdc1f07ef0949d588e4d72f2136542da1ed (patch) (side-by-side diff) | |
| tree | eaff968415cd0adcffc991d194977d7a75b9b32f | |
| parent | 4acb3cdac3f70466f4b271e85971412d688b0c20 (diff) | |
| download | androgenizer-testing_cxxflags.tar.gz androgenizer-testing_cxxflags.tar.bz2 | |
Documentation fixes regarding CFLAGS, CPPFLAGS and CXXFLAGStesting_cxxflags
| -rw-r--r-- | README.txt | 17 |
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 |
