diff --git a/configure b/configure index 9fec95808d71d4..924e11a56c2c8a 100755 --- a/configure +++ b/configure @@ -632,7 +632,8 @@ def configure_node(o): def configure_libz(o): o['variables']['node_shared_zlib'] = b(options.shared_zlib) - o['libraries'] += ['-l%s' % options.shared_zlib_libname] + if b(options.shared_zlib) == True: + o['libraries'] += ['-l%s' % options.shared_zlib_libname] if options.shared_zlib_libpath: o['libraries'] += ['-L%s' % options.shared_zlib_libpath] if options.shared_zlib_includes: @@ -641,8 +642,9 @@ def configure_libz(o): def configure_http_parser(o): o['variables']['node_shared_http_parser'] = b(options.shared_http_parser) - - o['libraries'] += ['-l%s' % options.shared_http_parser_libname] + + if b(options.shared_http_parser) == True: + o['libraries'] += ['-l%s' % options.shared_http_parser_libname] if options.shared_http_parser_libpath: o['libraries'] += ['-L%s' % options.shared_http_parser_libpath] if options.shared_http_parser_includes: @@ -652,7 +654,8 @@ def configure_http_parser(o): def configure_libuv(o): o['variables']['node_shared_libuv'] = b(options.shared_libuv) - o['libraries'] += ['-l%s' % options.shared_libuv_libname] + if b(options.shared_libuv) == True: + o['libraries'] += ['-l%s' % options.shared_libuv_libname] if options.shared_libuv_libpath: o['libraries'] += ['-L%s' % options.shared_libuv_libpath] else: