0032-Add-option-to-disable-the-hashlib-module.patch 998 B

1234567891011121314151617181920212223242526272829303132
  1. From 479bef8182c4f6b678a86820ccc06760ca60c286 Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  3. Date: Tue, 7 Mar 2017 22:33:02 +0100
  4. Subject: [PATCH] Add option to disable the hashlib module
  5. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  6. [Peter: update for 2.7.16]
  7. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
  8. ---
  9. configure.ac | 6 ++++++
  10. 1 file changed, 6 insertions(+)
  11. diff --git a/configure.ac b/configure.ac
  12. index 6d19cdee95..ddccc79c2c 100644
  13. --- a/configure.ac
  14. +++ b/configure.ac
  15. @@ -2869,6 +2869,12 @@ AC_ARG_ENABLE(ssl,
  16. DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _ssl"
  17. fi])
  18. +AC_ARG_ENABLE(hashlib,
  19. + AS_HELP_STRING([--disable-hashlib], [disable hashlib]),
  20. + [ if test "$enableval" = "no"; then
  21. + DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _hashlib"
  22. + fi])
  23. +
  24. AC_ARG_ENABLE(bz2,
  25. AS_HELP_STRING([--disable-bz2], [disable BZIP2]),
  26. [ if test "$enableval" = "no"; then
  27. --
  28. 2.11.0