X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=ia32rtools.git;a=blobdiff_plain;f=run_imp.sh;h=15381b7d489ba85685bcbf5d218b0eea27c3b021;hp=aab9fd351d436cc0bf2f04fdd1447dc848df09e1;hb=6135d8e6925883dd9d4bd6f836bf469bf2ee2b3e;hpb=296d81f87e2387c5f16922854d4bb5ab368cfaea diff --git a/run_imp.sh b/run_imp.sh index aab9fd3..15381b7 100755 --- a/run_imp.sh +++ b/run_imp.sh @@ -1,5 +1,9 @@ #!/bin/sh +# warning: i686-w64-mingw32- on Ubuntu 14.04 +# contains broken InterlockedDecrement +test -n "$mingwb" || mingwb=i686-w64-mingw32 + target_s=$1 src_asm=$2 implist=${target_s}_implist @@ -23,9 +27,9 @@ cat $implist | while read i; do ;; esac - grep "\<_$si\>" /usr/i586-mingw32msvc/lib/lib* "$@" | awk '{print $3}' | \ + grep -e "\<_\?_$si\>" -e "@$si\>" /usr/$mingwb/lib/lib* "$@" | awk '{print $3}' | \ while read f; do - sym=`i586-mingw32msvc-nm $f | grep "\<_$si\>" | grep ' T ' | awk '{print $3}'` + sym=`${mingwb}-nm $f | grep -e "\<_\?_$si\>" -e " @$si\>" | grep ' T ' | awk '{print $3}'` if test -n "$sym"; then echo $sym > $tmpsym break @@ -33,7 +37,7 @@ cat $implist | while read i; do done sym=`cat $tmpsym` if test -z "$sym"; then - echo "no file/sym for $i, lf $f" + echo "$target_s: no file/sym for $i" exit 1 fi