0019-Use-ranlib-from-env-if-env-variable-is-set.patch 788 B

1234567891011121314151617181920212223242526
  1. From e3eae5df830e7c53d0d6fd38b55bff648aeec37a Mon Sep 17 00:00:00 2001
  2. From: Isuru Fernando <isuruf@gmail.com>
  3. Date: Sun, 3 Nov 2019 15:09:45 -0600
  4. Subject: [PATCH 19/30] Use ranlib from env if env variable is set
  5. ---
  6. Lib/distutils/sysconfig.py | 3 +++
  7. 1 file changed, 3 insertions(+)
  8. diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py
  9. index f56ebe6c3a..8658c84797 100644
  10. --- a/Lib/distutils/sysconfig.py
  11. +++ b/Lib/distutils/sysconfig.py
  12. @@ -240,6 +240,9 @@ def customize_compiler(compiler):
  13. linker_exe=cc,
  14. archiver=archiver)
  15. + if 'RANLIB' in os.environ and 'ranlib' in compiler.executables:
  16. + compiler.set_executables(ranlib=os.environ['RANLIB'])
  17. +
  18. compiler.shared_lib_extension = shlib_suffix
  19. --
  20. 2.23.0