Skip to content

Commit 2e4a86a

Browse files
committed
Fix macOS rpath
1 parent 5e38abe commit 2e4a86a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: binding.gyp

+7
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@
1111
"."
1212
],
1313
"libraries": [ "<(module_root_dir)/libchdb.so" ],
14+
"conditions": [
15+
['OS=="mac"', {
16+
"ldflags": [
17+
"-Wl,-rpath,@loader_path/../../"
18+
]
19+
}]
20+
],
1421
"cflags!": [ "-fno-exceptions" ],
1522
"cflags_cc!": [ "-fno-exceptions" ],
1623
"defines": [ "NAPI_DISABLE_CPP_EXCEPTIONS" ]

0 commit comments

Comments
 (0)