Skip to content

Commit 1b22bad

Browse files
committed
build: fix logic for shared library flags
Fixes a regession introduced in fd90b33 PR-URL: #1454 Reviewed-By: Chris Dickinson <[email protected]>
1 parent ca8c9ec commit 1b22bad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

configure

+4-4
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ def configure_node(o):
658658
def configure_libz(o):
659659
o['variables']['node_shared_zlib'] = b(options.shared_zlib)
660660

661-
if b(options.shared_zlib) == True:
661+
if options.shared_zlib:
662662
o['libraries'] += ['-l%s' % options.shared_zlib_libname]
663663
if options.shared_zlib_libpath:
664664
o['libraries'] += ['-L%s' % options.shared_zlib_libpath]
@@ -668,8 +668,8 @@ def configure_libz(o):
668668

669669
def configure_http_parser(o):
670670
o['variables']['node_shared_http_parser'] = b(options.shared_http_parser)
671-
672-
if b(options.shared_http_parser) == True:
671+
672+
if options.shared_http_parser:
673673
o['libraries'] += ['-l%s' % options.shared_http_parser_libname]
674674
if options.shared_http_parser_libpath:
675675
o['libraries'] += ['-L%s' % options.shared_http_parser_libpath]
@@ -680,7 +680,7 @@ def configure_http_parser(o):
680680
def configure_libuv(o):
681681
o['variables']['node_shared_libuv'] = b(options.shared_libuv)
682682

683-
if b(options.shared_libuv) == True:
683+
if options.shared_libuv:
684684
o['libraries'] += ['-l%s' % options.shared_libuv_libname]
685685
if options.shared_libuv_libpath:
686686
o['libraries'] += ['-L%s' % options.shared_libuv_libpath]

0 commit comments

Comments
 (0)