diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in index 44785403..abb7b0c7 100644 --- a/build-aux/ltmain.in +++ b/build-aux/ltmain.in @@ -6493,7 +6493,7 @@ func_mode_link () test no = "$hardcode_direct_absolute"; then add=$libdir/$linklib elif test yes = "$hardcode_minus_L"; then - add_dir=-L$libdir + add_dir=-L$lt_sysroot$libdir add=-l$name elif test yes = "$hardcode_shlibpath_var"; then case :$finalize_shlibpath: in