From: Jeremiah Senkpiel Date: Fri, 17 Apr 2015 19:04:46 +0000 (-0400) Subject: build: fix logic for shared library flags X-Git-Tag: v1.8.1~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b22bad35fa461d59a1640fc429952181300aa35;p=platform%2Fupstream%2Fnodejs.git build: fix logic for shared library flags Fixes a regession introduced in fd90b33b94e6ce64fde193deca2e2aa6c774f558 PR-URL: https://github.com/iojs/io.js/pull/1454 Reviewed-By: Chris Dickinson --- diff --git a/configure b/configure index 19ec28f..8a19a53 100755 --- a/configure +++ b/configure @@ -658,7 +658,7 @@ def configure_node(o): def configure_libz(o): o['variables']['node_shared_zlib'] = b(options.shared_zlib) - if b(options.shared_zlib) == True: + if options.shared_zlib: o['libraries'] += ['-l%s' % options.shared_zlib_libname] if options.shared_zlib_libpath: o['libraries'] += ['-L%s' % options.shared_zlib_libpath] @@ -668,8 +668,8 @@ def configure_libz(o): def configure_http_parser(o): o['variables']['node_shared_http_parser'] = b(options.shared_http_parser) - - if b(options.shared_http_parser) == True: + + if options.shared_http_parser: o['libraries'] += ['-l%s' % options.shared_http_parser_libname] if options.shared_http_parser_libpath: o['libraries'] += ['-L%s' % options.shared_http_parser_libpath] @@ -680,7 +680,7 @@ def configure_http_parser(o): def configure_libuv(o): o['variables']['node_shared_libuv'] = b(options.shared_libuv) - if b(options.shared_libuv) == True: + if options.shared_libuv: o['libraries'] += ['-l%s' % options.shared_libuv_libname] if options.shared_libuv_libpath: o['libraries'] += ['-L%s' % options.shared_libuv_libpath]