summaryrefslogtreecommitdiffstats
path: root/Help/envvar/LDFLAGS.rst
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2017-09-27 13:01:06 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-09-27 13:01:35 (GMT)
commita2eec58dfa94d8c2994c70815c12eba3cf467907 (patch)
treea955b5c99e9f0cc566562d568d2dc342dc1f97d7 /Help/envvar/LDFLAGS.rst
parent825baaa1b3698c40ac349f4d2daa45277e64397e (diff)
parente6b77c5f1a918b3b33457eca0590d0ff3840c08f (diff)
downloadCMake-a2eec58dfa94d8c2994c70815c12eba3cf467907.zip
CMake-a2eec58dfa94d8c2994c70815c12eba3cf467907.tar.gz
CMake-a2eec58dfa94d8c2994c70815c12eba3cf467907.tar.bz2
Merge topic 'document_env_variables'
e6b77c5f Help: Document CMake's environment variables Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1235
Diffstat (limited to 'Help/envvar/LDFLAGS.rst')
-rw-r--r--Help/envvar/LDFLAGS.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Help/envvar/LDFLAGS.rst b/Help/envvar/LDFLAGS.rst
new file mode 100644
index 0000000..52da99c
--- /dev/null
+++ b/Help/envvar/LDFLAGS.rst
@@ -0,0 +1,10 @@
+LDFLAGS
+-------
+
+Will only be used by CMake on the first configuration to determine the default
+linker flags, after which the value for ``LDFLAGS`` is stored in the cache
+as :variable:`CMAKE_EXE_LINKER_FLAGS_INIT`,
+:variable:`CMAKE_SHARED_LINKER_FLAGS_INIT`, and
+:variable:`CMAKE_MODULE_LINKER_FLAGS_INIT`. For any configuration run
+(including the first), the environment variable will be ignored if the
+equivalent ``CMAKE_<TYPE>_LINKER_FLAGS_INIT`` variable is defined.