Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

python37: fix distutils C++ patch (PR #64758)

Update distutils patch to the upstream changes.
See: https://github.com/python/cpython/commit/6c0e0d141a07cc3fd2441d9df8d762f56bf7edf2

(cherry picked from commit 7094a1af0c528b7c519a38253e5a4fab7dcf056e)

authored by

Mario Rodas and committed by
Vladimír Čunát
198a6bd9 45b4e23a

+3 -3
+3 -3
pkgs/development/interpreters/python/cpython/3.7/python-3.x-distutils-C++.patch
··· 83 83 _osx_support.customize_compiler(_config_vars) 84 84 _config_vars['CUSTOMIZED_OSX_COMPILER'] = 'True' 85 85 86 - - (cc, cxx, opt, cflags, ccshared, ldshared, shlib_suffix, ar, ar_flags) = \ 87 - - get_config_vars('CC', 'CXX', 'OPT', 'CFLAGS', 86 + - (cc, cxx, cflags, ccshared, ldshared, shlib_suffix, ar, ar_flags) = \ 87 + - get_config_vars('CC', 'CXX', 'CFLAGS', 88 88 - 'CCSHARED', 'LDSHARED', 'SHLIB_SUFFIX', 'AR', 'ARFLAGS') 89 89 + (cc, cxx, cflags, ccshared, ldshared, ldcxxshared, shlib_suffix, ar, ar_flags) = \ 90 90 + get_config_vars('CC', 'CXX', 'CFLAGS', 'CCSHARED', 'LDSHARED', 'LDCXXSHARED', ··· 108 108 ldshared = ldshared + ' ' + os.environ['LDFLAGS'] 109 109 + ldcxxshared = ldcxxshared + ' ' + os.environ['LDFLAGS'] 110 110 if 'CFLAGS' in os.environ: 111 - - cflags = opt + ' ' + os.environ['CFLAGS'] 111 + - cflags = cflags + ' ' + os.environ['CFLAGS'] 112 112 + cflags = os.environ['CFLAGS'] 113 113 ldshared = ldshared + ' ' + os.environ['CFLAGS'] 114 114 + if 'CXXFLAGS' in os.environ: