Skip to content

Commit a74c85d

Browse files
tronicalogoffart
authored andcommitted
Reduce risk of library mixing when linking against Qt on Linux
Similar to macOS, also use rpath on Linux, to encode the location of where we found Qt. cc slint-ui/slint#232
1 parent a4b1a2a commit a74c85d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qttypes/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ fn main() {
150150
""
151151
};
152152

153-
if cfg!(target_os = "macos") {
153+
if cfg!(any(target_os = "macos", target_os = "linux")) {
154154
println!("cargo:rustc-cdylib-link-arg=-Wl,-rpath,{}", qt_library_path.trim());
155155
}
156156

0 commit comments

Comments
 (0)