linux: Make binary search for libraries under current directory.
This commit is contained in:
parent
526aaecc52
commit
2b7b4a16f5
1 changed files with 12 additions and 2 deletions
14
atom.gyp
14
atom.gyp
|
@ -392,12 +392,22 @@
|
||||||
'vendor/breakpad/breakpad.gyp:breakpad_handler',
|
'vendor/breakpad/breakpad.gyp:breakpad_handler',
|
||||||
'vendor/breakpad/breakpad.gyp:breakpad_sender',
|
'vendor/breakpad/breakpad.gyp:breakpad_sender',
|
||||||
],
|
],
|
||||||
}],
|
}], # OS=="win"
|
||||||
['OS=="mac"', {
|
['OS=="mac"', {
|
||||||
'dependencies': [
|
'dependencies': [
|
||||||
'vendor/breakpad/breakpad.gyp:breakpad',
|
'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
|
}, # target <(product_name)_lib
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue