564d885a50091654c7d53cc78c25e9d5b47c8dbb
[openwrt/svn-archive/archive.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"'