From 1b7c308475472d48adffd16ef10cb9a037de9ce0 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 21 Feb 2014 17:22:05 +0800 Subject: [PATCH] linux: Make native modules work. --- atom.gyp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/atom.gyp b/atom.gyp index 721f2aa22e32..a17155bb3760 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"