summaryrefslogtreecommitdiffstats
path: root/Help/envvar/LDFLAGS.rst
blob: 78b34f401f18264956b102ee14f3aa706d8c4570 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
LDFLAGS
-------

.. versionadded:: 3.10

.. include:: ENV_VAR.txt

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.