diff options
author | Matthias Koeppe <mkoeppe@math.ucdavis.edu> | 2022-06-17 18:27:40 -0700 |
---|---|---|
committer | Matthias Koeppe <mkoeppe@math.ucdavis.edu> | 2022-06-17 18:27:40 -0700 |
commit | 89bb9148c99b83f7bdfc2ff4ba0ac5ecf7a13bb6 (patch) | |
tree | 66f68fa0b4fea19c5a1ea4bb8f9322fe59e5ced4 /docs/userguide/ext_modules.rst | |
parent | 98fd109a181519a15599dc5bfde10149a48e6767 (diff) | |
download | python-setuptools-git-89bb9148c99b83f7bdfc2ff4ba0ac5ecf7a13bb6.tar.gz |
docs/userguide/ext_modules.rst: Also mention extra_compile_args, extra_link_args
Diffstat (limited to 'docs/userguide/ext_modules.rst')
-rw-r--r-- | docs/userguide/ext_modules.rst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/userguide/ext_modules.rst b/docs/userguide/ext_modules.rst index 9f19e8c7..741761a9 100644 --- a/docs/userguide/ext_modules.rst +++ b/docs/userguide/ext_modules.rst @@ -94,7 +94,8 @@ The compiler options appear in the command line in the following order: * first, the options provided by the ``sysconfig`` variable ``CFLAGS``, * then, the options provided by the environment variables ``CFLAGS`` and ``CPPFLAGS``, * then, the options provided by the ``sysconfig`` variable ``CCSHARED``, -* finally, a ``-I`` option for each element of ``Extension.include_dirs``. +* then, a ``-I`` option for each element of ``Extension.include_dirs``, +* finally, the options provided by ``Extension.extra_compile_args``. The linker options appear in the command line in the following order: @@ -102,7 +103,8 @@ The linker options appear in the command line in the following order: * first, the options provided by environment variables and ``sysconfig`` variables, * then, a ``-L`` option for each element of ``Extension.library_dirs``, -* finally, a linker-specific option like ``-Wl,-rpath`` for each element of ``Extension.runtime_library_dirs``. +* then, a linker-specific option like ``-Wl,-rpath`` for each element of ``Extension.runtime_library_dirs``, +* finally, the options provided by ``Extension.extra_link_args``. The resulting command line is then processed by the compiler and linker. According to the GCC manual sections on `directory options`_ and |