docs: The building environment variables
authorCheng Zhao <zcbenz@gmail.com>
Mon, 2 May 2016 23:29:23 +0000 (08:29 +0900)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 2 May 2016 23:29:23 +0000 (08:29 +0900)
docs/development/build-instructions-linux.md

index 78d3b1a..97779f3 100644 (file)
@@ -179,3 +179,25 @@ For example building with GCC toolchain:
 $ env CC=gcc CXX=g++ ./script/bootstrap.py -v --build_libchromiumcontent --disable_clang
 $ ./script/build.py -c R
 ```
+
+### Environment variables
+
+Apart from `CC` and `CXX`, you can also set following environment variables to
+custom the building configurations:
+
+* `CPPFLAGS`
+* `CPPFLAGS_host`
+* `CFLAGS`
+* `CFLAGS_host`
+* `CXXFLAGS`
+* `CXXFLAGS_host`
+* `AR`
+* `AR_host`
+* `CC`
+* `CC_host`
+* `CXX`
+* `CXX_host`
+* `LDFLAGS`
+
+The environment variables have to be set when executing the `bootstrap.py`
+script, it won't work in the `build.py` script.