On 21 Jul 2015, at 00:20, Hans Wennborg <h...@chromium.org> wrote:
> 
> On Mon, Jul 20, 2015 at 3:15 PM, Dimitry Andric <dimi...@andric.com> wrote:
...
>> Index: test-release.sh
>> ===================================================================
>> --- test-release.sh     (revision 242721)
>> +++ test-release.sh     (working copy)
>> @@ -359,10 +359,12 @@ function clean_RPATH() {
>>   local InstallPath="$1"
>>   for Candidate in `find $InstallPath/{bin,lib} -type f`; do
>>     if file $Candidate | grep ELF | egrep 'executable|shared object' > 
>> /dev/null 2>&1 ; then
>> -      rpath=`objdump -x $Candidate | grep 'RPATH' | sed -e's/^ *RPATH *//'`
>> -      if [ -n "$rpath" ]; then
>> -        newrpath=`echo $rpath | sed -e's/.*\(\$ORIGIN[^:]*\).*/\1/'`
>> -        chrpath -r $newrpath $Candidate 2>&1 > /dev/null 2>&1
>> +      if rpath=`objdump -x $Candidate | grep 'RPATH'` ; then
>> +        rpath=`echo $rpath | sed -e's/^ *RPATH *//'`
>> +        if [ -n "$rpath" ]; then
>> +          newrpath=`echo $rpath | sed -e's/.*\(\$ORIGIN[^:]*\).*/\1/'`
>> +          chrpath -r $newrpath $Candidate 2>&1 > /dev/null 2>&1
>> +        fi
>>       fi
>>     fi
>>   done
> 
> Looks great, please commit.

r242722.

-Dimitry

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
lldb-dev mailing list
lldb-dev@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

Reply via email to