Skip to content

Commit 9551fae

Browse files
committed
documentation for new linker flags
1 parent d1f35aa commit 9551fae

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Doc/using/configure.rst

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1496,6 +1496,9 @@ Linker flags
14961496
value to be able to build extension modules using the
14971497
directories specified in the environment variables.
14981498

1499+
Please consider using ``EXE_LDFLAGS`` if the supplied linker flags are
1500+
executable specific, e.g. GCC's ``-pie`` flag.
1501+
14991502
.. envvar:: LIBS
15001503

15011504
Linker flags to pass libraries to the linker when linking the Python
@@ -1531,6 +1534,30 @@ Linker flags
15311534

15321535
.. versionadded:: 3.8
15331536

1537+
.. envvar:: EXE_LDFLAGS
1538+
1539+
Linker flags used for building executable targets such as the
1540+
interpreter. If supplied, :envvar:`PY_CORE_EXE_LDFLAGS`
1541+
will be used in replacement of :envvar:`PY_CORE_LDFLAGS`.
1542+
1543+
.. versionadded:: 3.15
1544+
1545+
.. envvar:: CONFIGURE_EXE_LDFLAGS
1546+
1547+
Value of :envvar:`EXE_LDFLAGS` variable passed to the ``./configure``
1548+
script.
1549+
1550+
.. versionadded:: 3.15
1551+
1552+
.. envvar:: PY_CORE_EXE_LDFLAGS
1553+
1554+
Linker flags used for building the interpreter and
1555+
executable targets.
1556+
1557+
Default: ``$(PY_CORE_LDFLAGS)``
1558+
1559+
.. versionadded:: 3.15
1560+
15341561

15351562
.. rubric:: Footnotes
15361563

0 commit comments

Comments
 (0)