libtool: Revert "libtool: bump to 2.4.6"
[openwrt/openwrt.git] / tools / libtool / patches / 120-strip-unsafe-dirs-for-relinking.patch
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@%%"`
5 fi
6
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:]]*%%"`
9 +
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 @@ -2973,6 +2973,9 @@ func_mode_install ()
16 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
17 fi
18
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:]]*%%"`
21 +
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"'