summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorRod Vagg <rod@vagg.org>2016-10-30 23:40:54 +1100
committerMyles Borins <myles.borins@gmail.com>2016-12-21 14:05:24 -0500
commit66687c09063d298ec8b0af0ff23e4a1f71f29afa (patch)
tree89fcbf748e6e07ecf43853f1bbcfa7bc808af223 /configure
parent3c09579eeeffd580d3d90069305c435d442551ee (diff)
downloadnode-new-66687c09063d298ec8b0af0ff23e4a1f71f29afa.tar.gz
build: prioritise --shared-X-Y over pkg-config
PR-URL: https://github.com/nodejs/node/pull/9368 Reviewed-By: Johan Bergstrom <bugs@bergstroem.nu> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18
1 files changed, 9 insertions, 9 deletions
diff --git a/configure b/configure
index efcf89336e..6a50e5e8e1 100755
--- a/configure
+++ b/configure
@@ -884,26 +884,26 @@ def configure_library(lib, output):
if getattr(options, shared_lib):
(pkg_libs, pkg_cflags, pkg_libpath) = pkg_config(lib)
- if pkg_cflags:
+ if options.__dict__[shared_lib + '_includes']:
+ output['include_dirs'] += [options.__dict__[shared_lib + '_includes']]
+ elif pkg_cflags:
output['include_dirs'] += (
filter(None, map(str.strip, pkg_cflags.split('-I'))))
- elif options.__dict__[shared_lib + '_includes']:
- output['include_dirs'] += [options.__dict__[shared_lib + '_includes']]
# libpath needs to be provided ahead libraries
- if pkg_libpath:
- output['libraries'] += [pkg_libpath]
- elif options.__dict__[shared_lib + '_libpath']:
+ if options.__dict__[shared_lib + '_libpath']:
output['libraries'] += [
'-L%s' % options.__dict__[shared_lib + '_libpath']]
+ elif pkg_libpath:
+ output['libraries'] += [pkg_libpath]
default_libs = getattr(options, shared_lib + '_libname')
default_libs = map('-l{0}'.format, default_libs.split(','))
- if pkg_libs:
- output['libraries'] += pkg_libs.split()
- elif default_libs:
+ if default_libs:
output['libraries'] += default_libs
+ elif pkg_libs:
+ output['libraries'] += pkg_libs.split()
def configure_v8(o):