Kaydet (Commit) 6b5d7b23 authored tarafından Michael Stahl's avatar Michael Stahl

gbuild: document what CFLAGS/CXXFLAGS etc. *actually* do

Looks like following GNU build system standards isn't necessarily the
best idea, if even the documentation gets it wrong.
Also document the ENVCFLAGS/ENVCFLAGSCXX variables.

see also: i#116959 and:
http://www.gnu.org/software/autoconf/manual/standards.html#Command-Variables

Change-Id: I56d8623cbbc800ef80da1610f6fd104ac29beaf9
(cherry picked from commit d3171eb7)
üst 24108306
...@@ -108,14 +108,19 @@ INTERACTIVE VARIABLES: ...@@ -108,14 +108,19 @@ INTERACTIVE VARIABLES:
PARALLELISM If not empty, pass argument on as the -j switch PARALLELISM If not empty, pass argument on as the -j switch
to recursive make invocations. Useful to to recursive make invocations. Useful to
lower/increase build parallelism individually. lower/increase build parallelism individually.
LEXFLAGS Add as flags for LEX scanner generator invocation. LEXFLAGS Append flags for LEX scanner generator invocation.
YACCFLAGS Add as flags for YACC parser generator invocation. YACCFLAGS Append flags for YACC parser generator invocation.
CPPFLAGS Add as preprocessor flags for C/C++/ObjC/ObjC++ compilation. CPPFLAGS Append preprocessor flags for C/C++/ObjC/ObjC++ compilation.
CFLAGS Add as compiler flags for plain C compilation. CFLAGS Override compiler flags for plain C compilation.
CXXFLAGS Add as compiler flags for C++ compilation. ENVCFLAGS Append compiler flags for plain C compilation.
OBJCFLAGS Add as compiler flags for Objective C compilation. CXXFLAGS Override compiler flags for C++ compilation.
OBJCXXFLAGS Add as compiler flags for Objective C++ compilation. Note: this overrides default optimization and debug
LDFLAGS Add as linker flags. flags; to append flags without overriding, use:
CXXFLAGS='$(call gb_LinkTarget__get_debugcxxflags,$(1)) -Wfoo'
ENVCFLAGSCXX Append compiler flags for C++ compilation.
OBJCFLAGS Override compiler flags for Objective C compilation.
OBJCXXFLAGS Override compiler flags for Objective C++ compilation.
LDFLAGS Override linker flags.
gb_FULLDEPS Generate and use dependencies (on by default, handle with care). gb_FULLDEPS Generate and use dependencies (on by default, handle with care).
gb_COLOR Use ASCII color output. gb_COLOR Use ASCII color output.
gb_TITLES Show progress in terminal title. gb_TITLES Show progress in terminal title.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment