Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit ac82f34

Browse files
author
Simon Hofmann
committed
Split rpath setting, since macOS does not support
1 parent acd14f4 commit ac82f34

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

binding.gyp

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@
4343
"-fno-rtti",
4444
"-fno-exceptions"
4545
],
46-
"ldflags" : [
47-
"-Wl,-rpath,'$$ORIGIN'"
48-
],
4946
"xcode_settings": {
5047
"OTHER_CFLAGS": [
5148
"-std=c++11",
@@ -70,6 +67,24 @@
7067
},
7168
}
7269
}],
70+
["OS==\"mac\"",
71+
{
72+
"link_settings": {
73+
"libraries": [
74+
"-Wl,-rpath,@loader_path/."
75+
],
76+
}
77+
}
78+
],
79+
["OS==\"linux\"",
80+
{
81+
"link_settings": {
82+
"libraries": [
83+
"-Wl,-rpath,'$$ORIGIN'"
84+
],
85+
}
86+
}
87+
]
7388
],
7489

7590
"configurations": {

0 commit comments

Comments
 (0)