diff --git a/tests/module/loader/.cargo/config.toml b/tests/module/loader/.cargo/config.toml index 6d87ddea..d5f7398e 100644 --- a/tests/module/loader/.cargo/config.toml +++ b/tests/module/loader/.cargo/config.toml @@ -6,3 +6,6 @@ rustflags = ["-C", "link-args=-rdynamic"] [target.x86_64-unknown-linux-gnu] rustflags = ["-C", "link-args=-rdynamic"] + +[target.x86_64-unknown-illumos] +rustflags = ["-C", "link-args=-rdynamic"] diff --git a/tests/module/loader/tests/load.rs b/tests/module/loader/tests/load.rs index 5ff16e58..3a0abe1e 100644 --- a/tests/module/loader/tests/load.rs +++ b/tests/module/loader/tests/load.rs @@ -136,7 +136,7 @@ fn make_lua() -> Result { dylib_path = env::var("DYLD_FALLBACK_LIBRARY_PATH").unwrap(); dylib_ext = "dylib"; separator = ":"; - } else if cfg!(target_os = "linux") { + } else if cfg!(any(target_os = "linux", target_os = "illumos")) { dylib_path = env::var("LD_LIBRARY_PATH").unwrap(); dylib_ext = "so"; separator = ":";