aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/howtox.md
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-01-10 23:05:57 +0200
committerGitHub <noreply@github.com>2019-01-10 23:05:57 +0200
commitfa562d8100fbdf9dc4e811d0ede51d19ad3dad01 (patch)
tree1e3216c1b195334b694be12ad031f91779624fb2 /docs/markdown/howtox.md
parent8165fa6ad0ffee11d0342b724331ace0a6f49773 (diff)
parent724c97ef4e8b921dfa7dd76f86efd1d0305723c5 (diff)
downloadmeson-fa562d8100fbdf9dc4e811d0ede51d19ad3dad01.zip
meson-fa562d8100fbdf9dc4e811d0ede51d19ad3dad01.tar.gz
meson-fa562d8100fbdf9dc4e811d0ede51d19ad3dad01.tar.bz2
Merge pull request #4744 from dcbaker/docs-cflags
Discourage the use of env variables like CFLAGS [skip ci]
Diffstat (limited to 'docs/markdown/howtox.md')
-rw-r--r--docs/markdown/howtox.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/markdown/howtox.md b/docs/markdown/howtox.md
index adcec7c..3d8515f 100644
--- a/docs/markdown/howtox.md
+++ b/docs/markdown/howtox.md
@@ -52,7 +52,9 @@ executable(..., dependencies : thread_dep)
## Set extra compiler and linker flags from the outside (when e.g. building distro packages)
-The behavior is the same as with other build systems, with environment variables during first invocation.
+The behavior is the same as with other build systems, with environment
+variables during first invocation. Do not use these when you need to rebuild
+the source
```console
$ CFLAGS=-fsomething LDFLAGS=-Wl,--linker-flag meson <options>