1 --- a/libltdl/config/ltmain.m4sh
2 +++ b/libltdl/config/ltmain.m4sh
3 @@ -2183,6 +2183,9 @@ func_mode_install ()
4 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
7 + relink_command=`$ECHO "$relink_command" | $SED "s%-L[[:space:]]*/lib[^[:space:]]*%%"`
8 + relink_command=`$ECHO "$relink_command" | $SED "s%-L[[:space:]]*/usr/lib[^[:space:]]*%%"`
10 func_warning "relinking \`$file'"
11 func_show_eval "$relink_command" \
12 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
13 --- a/libltdl/config/ltmain.sh
14 +++ b/libltdl/config/ltmain.sh
15 @@ -2972,6 +2972,9 @@ func_mode_install ()
16 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
19 + relink_command=`$ECHO "$relink_command" | $SED "s%-L[[:space:]]*/lib[^[:space:]]*%%"`
20 + relink_command=`$ECHO "$relink_command" | $SED "s%-L[[:space:]]*/usr/lib[^[:space:]]*%%"`
22 func_warning "relinking \`$file'"
23 func_show_eval "$relink_command" \
24 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'