Index: runtime/bin/bin.gypi |
diff --git a/runtime/bin/bin.gypi b/runtime/bin/bin.gypi |
index 98b3eb356cb3c426c71c108a5fc7cf283995788c..c8108b7e87e76cef186de53cd0fe59abb6750aca 100644 |
--- a/runtime/bin/bin.gypi |
+++ b/runtime/bin/bin.gypi |
@@ -492,7 +492,14 @@ |
}, |
}, |
}], |
- ], |
+ ['OS=="linux"', { |
+ # Have the linker add all symbols to the dynamic symbol table |
+ # so that extensions can look them up dynamically in the binary. |
+ 'ldflags': [ |
+ '-rdynamic', |
+ ], |
+ }], |
+ ], |
}, |
{ |
# dart binary without any snapshot built in. |
@@ -531,7 +538,15 @@ |
'AdditionalOptions': [ '/EXPORT:Dart_True' ], |
}, |
}, |
- }]], |
+ }], |
+ ['OS=="linux"', { |
+ # Have the linker add all symbols to the dynamic symbol table |
+ # so that extensions can look them up dynamically in the binary. |
+ 'ldflags': [ |
+ '-rdynamic', |
+ ], |
+ }], |
+ ], |
}, |
{ |
'target_name': 'process_test', |