File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -748,6 +748,17 @@ Compiler flags
748
748
extensions. Use it when a compiler flag should *not * be part of the
749
749
distutils :envvar: `CFLAGS ` once Python is installed (:issue: `21121 `).
750
750
751
+ In particular, :envvar: `CFLAGS ` should not contain:
752
+
753
+ * the compiler flag `-I ` (for setting the search path for include files).
754
+ The `-I ` flags are processed from left to right, and any flags in
755
+ :envvar: `CFLAGS ` would take precedence over user- and package-supplied `-I `
756
+ flags.
757
+
758
+ * hardening flags such as `-Werror ` because distributions cannot control
759
+ whether packages installed by users conform to such heightened
760
+ standards.
761
+
751
762
.. versionadded :: 3.5
752
763
753
764
.. envvar :: EXTRA_CFLAGS
@@ -860,6 +871,13 @@ Linker flags
860
871
:envvar: `CFLAGS_NODIST `. Use it when a linker flag should *not * be part of
861
872
the distutils :envvar: `LDFLAGS ` once Python is installed (:issue: `35257 `).
862
873
874
+ In particular, :envvar: `LDFLAGS ` should not contain:
875
+
876
+ * the compiler flag `-L ` (for setting the search path for libraries).
877
+ The `-L ` flags are processed from left to right, and any flags in
878
+ :envvar: `LDFLAGS ` would take precedence over user- and package-supplied `-L `
879
+ flags.
880
+
863
881
.. envvar :: CONFIGURE_LDFLAGS_NODIST
864
882
865
883
Value of :envvar: `LDFLAGS_NODIST ` variable passed to the ``./configure ``
You can’t perform that action at this time.
0 commit comments