]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36235: Fix CFLAGS in distutils customize_compiler() (GH-12236) (GH-12349)
authorVictor Stinner <vstinner@redhat.com>
Fri, 15 Mar 2019 15:03:44 +0000 (16:03 +0100)
committerGitHub <noreply@github.com>
Fri, 15 Mar 2019 15:03:44 +0000 (16:03 +0100)
commit37f6971777c05b5ca9c157606896b7ff458756a5
tree4e2f5a9314e4593befcba9f7867d9d585f177e74
parentb14057877fd897eaee7bc6626682fc6092b6bbd2
bpo-36235: Fix CFLAGS in distutils customize_compiler() (GH-12236) (GH-12349)

Fix CFLAGS in customize_compiler() of distutils.sysconfig: when the
CFLAGS environment variable is defined, don't override CFLAGS variable with
the OPT variable anymore.

Initial patch written by David Malcolm.

Co-Authored-By: David Malcolm <dmalcolm@redhat.com>
(cherry picked from commit 86082c22d23285995a32aabb491527c9f5629556)
Lib/distutils/sysconfig.py
Lib/distutils/tests/test_sysconfig.py
Misc/NEWS.d/next/Library/2019-03-08-13-32-21.bpo-36235._M72wU.rst [new file with mode: 0644]