1 --- binutils-2.17.50.0.17/ltmain.sh.orig 2007-06-18 19:29:28.000000000 +0200
2 +++ binutils-2.17.50.0.17/ltmain.sh 2007-06-21 22:27:40.096178020 +0200
5 if test "$linkmode" = prog || test "$mode" = relink; then
10 # Finalize command for both is simple: just hardcode it.
11 @@ -4342,10 +4343,22 @@
15 + if test -n "$inst_prefix_dir"; then
18 + add_prefix_dir="-L$inst_prefix_dir$libdir"
23 + # add_prefix_dir must be appended instead, otherwise it can
24 + # possibly be overrided by any hardcoded -L/... path in deplibs
25 if test "$linkmode" = prog; then
26 + test -n "$add_prefix_dir" && finalize_deplibs="$finalize_deplibs $add_prefix_dir"
27 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
28 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
30 + test -n "$add_prefix_dir" && deplibs="$deplibs $add_prefix_dir"
31 test -n "$add_dir" && deplibs="$add_dir $deplibs"
32 test -n "$add" && deplibs="$add $deplibs"