linux: Make native modules work.

This commit is contained in:
Cheng Zhao 2014-02-21 17:22:05 +08:00
parent 2b2a55d870
commit 1b7c308475

View file

@ -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"