Skip to content

Commit 07a9b01

Browse files
committed
Fixing zdefs.
1 parent 5a761f7 commit 07a9b01

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/grpc-native-core/binding.gyp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,9 +879,11 @@
879879
],
880880
'cflags': [
881881
'-pthread',
882-
'-zdefs',
883882
'-Wno-error=deprecated-declarations'
884883
],
884+
'ldflags': [
885+
'-Wl,-zdefs',
886+
],
885887
"conditions": [
886888
['OS=="win" or runtime=="electron"', {
887889
'dependencies': [

packages/grpc-native-core/templates/binding.gyp.template

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,11 @@
312312
],
313313
'cflags': [
314314
'-pthread',
315-
'-zdefs',
316315
'-Wno-error=deprecated-declarations'
317316
],
317+
'ldflags': [
318+
'-Wl,-zdefs',
319+
],
318320
"conditions": [
319321
['OS=="win" or runtime=="electron"', {
320322
'dependencies': [

0 commit comments

Comments
 (0)