summaryrefslogtreecommitdiff
authorDerek 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)
commita1702fdc1f07ef0949d588e4d72f2136542da1ed (patch) (side-by-side diff)
treeeaff968415cd0adcffc991d194977d7a75b9b32f
parent4acb3cdac3f70466f4b271e85971412d688b0c20 (diff)
downloadandrogenizer-testing_cxxflags.tar.gz
androgenizer-testing_cxxflags.tar.bz2
Documentation fixes regarding CFLAGS, CPPFLAGS and CXXFLAGStesting_cxxflags
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--README.txt17
1 files changed, 14 insertions, 3 deletions
diff --git a/README.txt b/README.txt
index b89e075..53867d0 100644
--- a/README.txt
+++ b/README.txt
@@ -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