| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -652,6 +652,17 @@ Compiler flags | |||
| 652 | 652 | extensions. Use it when a compiler flag should *not* be part of the | |
| 653 | 653 | distutils :envvar:`CFLAGS` once Python is installed (:issue:`21121`). | |
| 654 | 654 | ||
| 655 | + In particular, :envvar:`CFLAGS` should not contain: | ||
| 656 | + | ||
| 657 | + * the compiler flag `-I` (for setting the search path for include files). | ||
| 658 | + The `-I` flags are processed from left to right, and any flags in | ||
| 659 | + :envvar:`CFLAGS` would take precedence over user- and package-supplied `-I` | ||
| 660 | + flags. | ||
| 661 | + | ||
| 662 | + * hardening flags such as `-Werror` because distributions cannot control | ||
| 663 | + whether packages installed by users conform to such heightened | ||
| 664 | + standards. | ||
| 665 | + | ||
| 655 | 666 | .. versionadded:: 3.5 | |
| 656 | 667 | ||
| 657 | 668 | .. envvar:: EXTRA_CFLAGS | |
@@ -764,6 +775,13 @@ Linker flags | |||
| 764 | 775 | :envvar:`CFLAGS_NODIST`. Use it when a linker flag should *not* be part of | |
| 765 | 776 | the distutils :envvar:`LDFLAGS` once Python is installed (:issue:`35257`). | |
| 766 | 777 | ||
| 778 | + In particular, :envvar:`LDFLAGS` should not contain: | ||
| 779 | + | ||
| 780 | + * the compiler flag `-L` (for setting the search path for libraries). | ||
| 781 | + The `-L` flags are processed from left to right, and any flags in | ||
| 782 | + :envvar:`LDFLAGS` would take precedence over user- and package-supplied `-L` | ||
| 783 | + flags. | ||
| 784 | + | ||
| 767 | 785 | .. envvar:: CONFIGURE_LDFLAGS_NODIST | |
| 768 | 786 | ||
| 769 | 787 | Value of :envvar:`LDFLAGS_NODIST` variable passed to the ``./configure`` | |
| Back | FazBrowse Home | New Git URL |
0 commit comments