linux: Make native modules work.
This commit is contained in:
parent
2b2a55d870
commit
1b7c308475
1 changed files with 5 additions and 3 deletions
8
atom.gyp
8
atom.gyp
|
@ -399,11 +399,13 @@
|
||||||
}], # OS=="mac"
|
}], # OS=="mac"
|
||||||
['OS=="linux"', {
|
['OS=="linux"', {
|
||||||
'link_settings': {
|
'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': [
|
'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',
|
'-rpath \$$ORIGIN',
|
||||||
|
# Make native module dynamic loading work.
|
||||||
|
'-rdynamic',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
}], # OS=="linux"
|
}], # OS=="linux"
|
||||||
|
|
Loading…
Reference in a new issue