summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2011-09-23 15:40:35 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2011-09-23 15:40:35 +0200
commit9ad334085fc9bb4474265ce72c89da241234991e (patch)
treef7fe2e5a5f2f51d43cc943eb799e8a4205cf8ee2 /wscript
parent8fe5712477e94879664d5d420c72f273c0a888ff (diff)
downloadnodejs-9ad334085fc9bb4474265ce72c89da241234991e.tar.gz
nodejs-9ad334085fc9bb4474265ce72c89da241234991e.tar.bz2
nodejs-9ad334085fc9bb4474265ce72c89da241234991e.zip
build: explicitly link in libz on non-win32 platforms
Diffstat (limited to 'wscript')
-rw-r--r--wscript3
1 files changed, 3 insertions, 0 deletions
diff --git a/wscript b/wscript
index 822490215..dbf93b125 100644
--- a/wscript
+++ b/wscript
@@ -272,6 +272,9 @@ def configure(conf):
conf.env["USE_GDBJIT"] = o.use_gdbjit
+ if not conf.env["USE_SHARED_ZLIB"] and not sys.platform.startswith("win32"):
+ conf.env.append_value("LINKFLAGS", "-lz")
+
conf.check(lib='dl', uselib_store='DL')
if not sys.platform.startswith("sunos") and not sys.platform.startswith("cygwin") and not sys.platform.startswith("win32"):
conf.env.append_value("CCFLAGS", "-rdynamic")