It's also worth mentioning that, a patch was backported mentioning "# DP: Allow setting BASECFLAGS, OPT and EXTRA_LDFLAGS (like, CC, CXX, CPP, CFLAGS, CPPFLAGS, CCSHARED, LDSHARED) from the environment." [1], but then OPT is not being added at all by the patch (which had just mentioned adding it), which seems to point that this is a bug.
It's also worth mentioning that, a patch was backported mentioning "# DP: Allow setting BASECFLAGS, OPT and EXTRA_LDFLAGS (like, CC, CXX, CPP, CFLAGS, CPPFLAGS, CCSHARED, LDSHARED) from the environment." [1], but then OPT is not being added at all by the patch (which had just mentioned adding it), which seems to point that this is a bug.
https:/ /git.launchpad. net/ubuntu/ +source/ python2. 7/tree/ debian/ patches/ distutils- sysconfig. diff?h= applied/ ubuntu/ focal