#! /bin/sh # strip -x *.a;for i in *.a;do objdump -dr $i >$i.d;done;for i in *gas*.d;do j=`echo $i|sed 's/gas/verify/'`;diff -u -I '\.o: file format elf' -I '^In archive ' $j $i;done|vi - set -ex if [ "`uname -m`" = x86_64 ];then bits=64 target=x86_64-linux-gcc elif [ "`uname -m`" = i686 ];then bits=32 target=x86-linux-gcc else echo >&2 ERROR exit 1 fi function run { for branch in gas verify;do git checkout master-$branch git clean -df;git status;./configure --target=$target $enable_pic;make cp libvpx_g.a ../test/${bits}${branch}${pic}.a done } enable_pic="--enable-pic" pic=pic run enable_pic="" pic=fix run git clean -df git status echo OK