Skip to content

Commit

Permalink
Fix macOS rpath
Browse files Browse the repository at this point in the history
  • Loading branch information
auxten committed Jan 3, 2024
1 parent 5e38abe commit 2e4a86a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
"."
],
"libraries": [ "<(module_root_dir)/libchdb.so" ],
"conditions": [
['OS=="mac"', {
"ldflags": [
"-Wl,-rpath,@loader_path/../../"
]
}]
],
"cflags!": [ "-fno-exceptions" ],
"cflags_cc!": [ "-fno-exceptions" ],
"defines": [ "NAPI_DISABLE_CPP_EXCEPTIONS" ]
Expand Down

0 comments on commit 2e4a86a

Please sign in to comment.