# HG changeset patch # User Michael Goffioul # Date 1383660323 18000 # Node ID 5f4998342dcad5e88b70bd708b675f9755adbb46 # Parent f641f0543a6b8bbe68cf4e5baea02fdfd1ac1250 * tools/make-shared-from-static: Look for libXXX.lib and XXX.lib in MSVC mode. diff -r f641f0543a6b -r 5f4998342dca tools/make-shared-from-static --- a/tools/make-shared-from-static Tue Nov 05 09:05:23 2013 -0500 +++ b/tools/make-shared-from-static Tue Nov 05 09:05:23 2013 -0500 @@ -137,11 +137,15 @@ # Modern libtool won't create .a files, but will create directly .lib files. # If the .a file does not exist, check for an existing .lib file. if [ ! -f "$infile" ]; then - msvc_infile=`echo $infile | sed -e 's/\.a$/.lib/'` - if [ -f "$msvc_infile" ]; then - infile="$msvc_infile" - msvclibmode=true - fi + msvc_infiles="`echo $infile | sed -e 's/\.a$/.lib/'` \ +`dirname \"$infile\"`/`echo $base_infile | sed -e 's/\.a$/.lib/' -e 's/^lib//'`" + for msvc_infile in $msvc_infiles; do + if [ -f "$msvc_infile" ]; then + infile="$msvc_infile" + msvclibmode=true + break + fi + done fi else outfile=$(echo $base_infile | sed 's/\.a$/.dll/')