Skip to content

Commit de0180c

Browse files
committed
add rpath linker option in binding.gyp when --sqlite option is used with a custom sqlite
1 parent 6157f8c commit de0180c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

binding.gyp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
'-L<@(sqlite)/lib',
1313
'-lsqlite3'
1414
],
15-
'include_dirs': [ '<@(sqlite)/include' ]
15+
'include_dirs': [ '<@(sqlite)/include' ],
16+
'conditions': [ [ 'OS=="linux"', {'libraries+':['-Wl,-rpath=<@(sqlite)/lib']} ] ]
1617
},
1718
{
1819
'dependencies': [

0 commit comments

Comments
 (0)