summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorGiulio Benetti <giulio.benetti@benettiengineering.com>2020-01-07 09:22:45 -0700
committerGiulio Benetti <giulio.benetti@benettiengineering.com>2020-01-07 09:22:45 -0700
commite86940ec57e108c43b57fe8a00d6109bc24a2728 (patch)
tree443c2facf64e3e79d2d7ce27a8566e3a90d931dd /cmd
parent1a9015776d73205f7808c27a96dc47f1637bc3f7 (diff)
downloadnss-hg-e86940ec57e108c43b57fe8a00d6109bc24a2728.tar.gz
Bug 1603438 - Fix native tools build failure due to lack of zlib include dir if external r=jcj
Add ZLIB_INCLUDE_DIR variable On Linux platform[1], the build system forces to use zlib from the system instead of compiling the one located intree. The following error is raised when the zlib header is installed somewhere else than in the default system include path: ssl3con.c:39:18: fatal error: zlib.h: No such file or directory #include "zlib.h" The same trick setup for sqlite include directory is reproduced for zlib. The build system disallows in any manner to give arguments to the compiler explicity. The variable ZLIB_INCLUDE_DIR point to the directory where the zlib header is located. [1]: https://hg.mozilla.org/projects/nss/file/NSS_3_33_BRANCH/coreconf/Linux.mk#l180 [2]: https://hg.mozilla.org/projects/nss/file/NSS_3_33_BRANCH/lib/softoken/manifest.mn#l17
Diffstat (limited to 'cmd')
-rw-r--r--cmd/signtool/manifest.mn4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/signtool/manifest.mn b/cmd/signtool/manifest.mn
index 40be262db..d1b9d48c0 100644
--- a/cmd/signtool/manifest.mn
+++ b/cmd/signtool/manifest.mn
@@ -6,6 +6,10 @@ CORE_DEPTH = ../..
MODULE = nss
+ifdef ZLIB_INCLUDE_DIR
+INCLUDES += -I$(ZLIB_INCLUDE_DIR)
+endif
+
EXPORTS =
CSRCS = signtool.c \