0001-add-zlib-include-dir-variable.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. Add ZLIB_INCLUDE_DIR variable
  2. On Linux platform[1], the build system forces to use zlib from the
  3. system instead of compiling the one located intree.
  4. The following error is raised when the zlib header is installed
  5. somewhere else than in the default system include path:
  6. ssl3con.c:39:18: fatal error: zlib.h: No such file or directory
  7. #include "zlib.h"
  8. The same trick setup for sqlite include directory is reproduced for
  9. zlib. The build system disallows in any manner to give arguments to the
  10. compiler explicity.
  11. The variable ZLIB_INCLUDE_DIR point to the directory where the zlib
  12. header is located.
  13. [1]: https://hg.mozilla.org/projects/nss/file/NSS_3_33_BRANCH/coreconf/Linux.mk#l180
  14. [2]: https://hg.mozilla.org/projects/nss/file/NSS_3_33_BRANCH/lib/softoken/manifest.mn#l17
  15. Signed-off-by: Gaël PORTAY <gael.portay@savoirfairelinux.com>
  16. --- libnss-3.33.orig/nss/lib/ssl/manifest.mn 2017-09-20 02:47:27.000000000 -0400
  17. +++ libnss-3.33/nss/lib/ssl/manifest.mn 2018-02-16 16:45:41.512709898 -0500
  18. @@ -6,6 +6,10 @@
  19. # DEFINES = -DTRACE
  20. +ifdef ZLIB_INCLUDE_DIR
  21. +INCLUDES += -I$(ZLIB_INCLUDE_DIR)
  22. +endif
  23. +
  24. EXPORTS = \
  25. ssl.h \
  26. sslt.h \
  27. --- host-libnss-3.33.orig/nss/cmd/signtool/manifest.mn.orig 2018-02-16 17:08:58.474777871 -0500
  28. +++ host-libnss-3.33/nss/cmd/signtool/manifest.mn 2018-02-16 17:09:22.603710963 -0500
  29. @@ -6,6 +6,10 @@
  30. MODULE = nss
  31. +ifdef ZLIB_INCLUDE_DIR
  32. +INCLUDES += -I$(ZLIB_INCLUDE_DIR)
  33. +endif
  34. +
  35. EXPORTS =
  36. CSRCS = signtool.c \