diff options
author | murgatroid99 <mlumish@google.com> | 2015-07-06 16:44:35 -0700 |
---|---|---|
committer | murgatroid99 <mlumish@google.com> | 2015-07-06 16:44:35 -0700 |
commit | b771f91d6095396d5bf05c639f6a70bc61f77e8a (patch) | |
tree | 9a36f1de1a68c72cd15f9a9cc3dd1a4d487dbd9b /src/node | |
parent | 357e18123d3cda43da2ceb85cde92ce017d0f755 (diff) |
Only use pkg-config if grpc is installed
Diffstat (limited to 'src/node')
-rw-r--r-- | src/node/binding.gyp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node/binding.gyp b/src/node/binding.gyp index 5b8c994aa1..b4debbda9a 100644 --- a/src/node/binding.gyp +++ b/src/node/binding.gyp @@ -19,10 +19,10 @@ "conditions": [ ['OS != "win"', { 'variables': { - 'has_pkg_config': '<!(command -v pkg-config >/dev/null 2>&1 && echo true || echo false)' + 'pkg_config_grpc': '<!(pkg-config --exists grpc >/dev/null 2>&1 && echo true || echo false)' }, 'conditions': [ - ['has_pkg_config == "true"', { + ['pkg_config_grpc == "true"', { 'link_settings': { 'libraries': [ '<!@(pkg-config --libs-only-l --static grpc)' |