Skip to content

Commit

Permalink
build: fix logic for shared library flags
Browse files Browse the repository at this point in the history
Fixes a regession introduced in fd90b33

PR-URL: #1454
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
  • Loading branch information
Fishrock123 committed Apr 17, 2015
1 parent ca8c9ec commit 1b22bad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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]
Expand All @@ -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]
Expand Down

0 comments on commit 1b22bad

Please sign in to comment.