3 # warning: i686-w64-mingw32- on Ubuntu 14.04
4 # contains broken InterlockedDecrement
5 test -n "$mingwb" || mingwb=i686-w64-mingw32
9 implist=${target_s}_implist
10 tmpsym=${target_s}_tmpsym
13 grep 'extrn ' $src_asm | awk '{print $2}' | \
14 awk -F: '{print $1}' > $implist
16 echo ".data" > $target_s
17 echo ".align 4" >> $target_s
19 cat $implist | while read i; do
23 si=`echo $i | cut -c 7-`
30 grep "\<_\?_$si\>" /usr/$mingwb/lib/lib* "$@" | awk '{print $3}' | \
32 sym=`${mingwb}-nm $f | grep "\<_\?_$si\>" | grep ' T ' | awk '{print $3}'`
33 if test -n "$sym"; then
39 if test -z "$sym"; then
40 echo "no file/sym for $i, lf $f"
44 echo ".globl $i" >> $target_s
45 echo "$i:" >> $target_s
46 echo " .long $sym" >> $target_s