Skip to content

Commit

Permalink
RPATHの設定をした
Browse files Browse the repository at this point in the history
RPATHがされていないとdynamiclink時にLD_LIBRARY_PATHの設定を行わないとlink errorになってしまうため

refs VOICEVOX#128
  • Loading branch information
qwerty2501 committed Jul 23, 2022
1 parent 8df0774 commit 4894175
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
[env]
CARGO_WORKSPACE_DIR = { value = "", relative = true }

[target.'cfg(target_os="linux")']
rustflags = ["-C", "link-arg=-Wl,-rpath,$ORIGIN"]

[target.'cfg(target_os="macos")']
rustflags = ["-C", "link-arg=-Wl,-rpath,@rpath"]

0 comments on commit 4894175

Please sign in to comment.