]> khamidou — GitHub mirrors - electron.git/commitdiff
linux: Make native modules work.
authorCheng Zhao <zcbenz@gmail.com>
Fri, 21 Feb 2014 09:22:05 +0000 (17:22 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 21 Feb 2014 09:22:05 +0000 (17:22 +0800)
atom.gyp

index 721f2aa22e322683f4fc6ac74e1c3199d46573f7..a17155bb376092e2d33f438350997b513b0b3ed6 100644 (file)
--- a/atom.gyp
+++ b/atom.gyp
         }],  # OS=="mac"
         ['OS=="linux"', {
           'link_settings': {
-            # Make binary search for libraries under current directory, so we
-            # don't have to manually set $LD_LIBRARY_PATH:
-            # http://serverfault.com/questions/279068/cant-find-so-in-the-same-directory-as-the-executable
             'ldflags': [
+              # Make binary search for libraries under current directory, so we
+              # don't have to manually set $LD_LIBRARY_PATH:
+              # http://serverfault.com/questions/279068/cant-find-so-in-the-same-directory-as-the-executable
               '-rpath \$$ORIGIN',
+              # Make native module dynamic loading work.
+              '-rdynamic',
             ],
           },
         }],  # OS=="linux"