aboutsummaryrefslogtreecommitdiffhomepage
path: root/binding.gyp
diff options
context:
space:
mode:
authorGravatar Michael Lumish <mlumish@google.com>2017-04-20 10:24:06 -0700
committerGravatar GitHub <noreply@github.com>2017-04-20 10:24:06 -0700
commit7432d748d7971944f4c57c900042d945f57b7098 (patch)
tree5e4b2b8eae1cd54bde13b8bdf25959f676c1d849 /binding.gyp
parent4bcec4a267e65f994738a19772aae07f5e2ffafb (diff)
parent98058337767a2d4ca2a75215292060bfbb2edd76 (diff)
Merge pull request #10737 from murgatroid99/node_artifact_alpine_compatibility
Add flag to compile gpr with compatibility for musl
Diffstat (limited to 'binding.gyp')
-rw-r--r--binding.gyp11
1 files changed, 10 insertions, 1 deletions
diff --git a/binding.gyp b/binding.gyp
index 9794c87343..e3b2a925a3 100644
--- a/binding.gyp
+++ b/binding.gyp
@@ -47,7 +47,11 @@
# will let users recompile gRPC to work without ALPN.
'grpc_alpn%': 'true',
# Indicates that the library should be built with gcov.
- 'grpc_gcov%': 'false'
+ 'grpc_gcov%': 'false',
+ # Indicates that the library should be built with compatibility for musl
+ # libc, so that it can run on Alpine Linux. This is only necessary if not
+ # building on Alpine Linux
+ 'grpc_alpine%': 'false'
},
'target_defaults': {
'configurations': {
@@ -115,6 +119,11 @@
'-rdynamic',
],
}],
+ ['grpc_alpine=="true"', {
+ 'defines': [
+ 'GPR_MUSL_LIBC_COMPAT'
+ ]
+ }],
['OS!="win" and runtime=="electron"', {
"defines": [
'OPENSSL_NO_THREADS'