From: Cheng Zhao Date: Fri, 14 Feb 2014 15:11:57 +0000 (+0000) Subject: linux: Make binary search for libraries under current directory. X-Git-Tag: v0.10.0~6^2~21 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=2b7b4a16f5e900a383049c360721c2aaf790f918;p=electron.git linux: Make binary search for libraries under current directory. --- diff --git a/atom.gyp b/atom.gyp index 6a96bd84..191a44cd 100644 --- a/atom.gyp +++ b/atom.gyp @@ -392,12 +392,22 @@ 'vendor/breakpad/breakpad.gyp:breakpad_handler', 'vendor/breakpad/breakpad.gyp:breakpad_sender', ], - }], + }], # OS=="win" ['OS=="mac"', { 'dependencies': [ 'vendor/breakpad/breakpad.gyp:breakpad', ], - }], + }], # 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': [ + '-rpath \$$ORIGIN', + ], + }, + }], # OS=="linux" ], }, # target <(product_name)_lib {