Skip to content

Instantly share code, notes, and snippets.

@phausler
Created December 27, 2015 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phausler/0a2f5578675e42e60d69 to your computer and use it in GitHub Desktop.
Save phausler/0a2f5578675e42e60d69 to your computer and use it in GitHub Desktop.
diff --git a/lib/product.py b/lib/product.py
index 82684cc..bcc6b6c 100644
--- a/lib/product.py
+++ b/lib/product.py
@@ -115,7 +115,7 @@ class DynamicLibrary(Library):
def generate(self):
if Configuration.current.target.sdk == OSType.Linux:
- return Library.generate(self, ["-shared", "-Wl,-soname," + self.product_name, "-Wl,--no-undefined"])
+ return Library.generate(self, ["-shared", "-Wl,-soname," + self.product_name, "-Wl,--no-undefined", "-Wl,-Bsymbolic"])
else:
return Library.generate(self, ["-shared"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment