From: Cheng Zhao Date: Fri, 21 Feb 2014 09:22:05 +0000 (+0800) Subject: linux: Make native modules work. X-Git-Tag: v0.10.0~6^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=1b7c308475472d48adffd16ef10cb9a037de9ce0;p=electron.git linux: Make native modules work. --- diff --git a/atom.gyp b/atom.gyp index 721f2aa2..a17155bb 100644 --- a/atom.gyp +++ b/atom.gyp @@ -399,11 +399,13 @@ }], # 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"