Skip to content

Commit fa49f2a

Browse files
committed
Don't extract link search path from -Wl,-rpath
1 parent 251b168 commit fa49f2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/cmake_probe.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ impl<'r> CmakeProbe<'r> {
143143
if !include_paths.contains(&path) {
144144
include_paths.push(path);
145145
}
146-
} else if let Some(path) = arg.strip_prefix("-L").or_else(|| arg.strip_prefix("-Wl,-rpath,")) {
146+
} else if let Some(path) = arg.strip_prefix("-L") {
147147
let path = LinkSearch(Linkage::Default, PathBuf::from(path.trim_start()));
148148
if !link_paths.contains(&path) {
149149
link_paths.push(path);

0 commit comments

Comments
 (0)