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

123456789101112131415161718192021222324252627282930
  1. From f11dc326ae216911a67bd563b619f39522c14bf2 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. ---
  7. configure.ac | 6 ++++++
  8. 1 file changed, 6 insertions(+)
  9. diff --git a/configure.ac b/configure.ac
  10. index 8dc573e..854724d 100644
  11. --- a/configure.ac
  12. +++ b/configure.ac
  13. @@ -2840,6 +2840,12 @@ AC_ARG_ENABLE(ssl,
  14. DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} ssl"
  15. fi])
  16. +AC_ARG_ENABLE(hashlib,
  17. + AS_HELP_STRING([--disable-hashlib], [disable hashlib]),
  18. + [ if test "$enableval" = "no"; then
  19. + DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _hashlib"
  20. + fi])
  21. +
  22. AC_ARG_ENABLE(bz2,
  23. AS_HELP_STRING([--disable-bz2], [disable BZIP2]),
  24. [ if test "$enableval" = "no"; then
  25. --
  26. 2.7.4