comparison tools/make-shared-from-static @ 3284:5f4998342dca

* tools/make-shared-from-static: Look for libXXX.lib and XXX.lib in MSVC mode.
author Michael Goffioul <michael.goffioul@gmail.com>
date Tue, 05 Nov 2013 09:05:23 -0500
parents a46b4b6fc26f
children
comparison
equal deleted inserted replaced
3283:f641f0543a6b 3284:5f4998342dca
135 outfile="${libprefix}${base_name}${libsuffix}.dll" 135 outfile="${libprefix}${base_name}${libsuffix}.dll"
136 implibfile="$base_name.lib" 136 implibfile="$base_name.lib"
137 # Modern libtool won't create .a files, but will create directly .lib files. 137 # Modern libtool won't create .a files, but will create directly .lib files.
138 # If the .a file does not exist, check for an existing .lib file. 138 # If the .a file does not exist, check for an existing .lib file.
139 if [ ! -f "$infile" ]; then 139 if [ ! -f "$infile" ]; then
140 msvc_infile=`echo $infile | sed -e 's/\.a$/.lib/'` 140 msvc_infiles="`echo $infile | sed -e 's/\.a$/.lib/'` \
141 if [ -f "$msvc_infile" ]; then 141 `dirname \"$infile\"`/`echo $base_infile | sed -e 's/\.a$/.lib/' -e 's/^lib//'`"
142 infile="$msvc_infile" 142 for msvc_infile in $msvc_infiles; do
143 msvclibmode=true 143 if [ -f "$msvc_infile" ]; then
144 fi 144 infile="$msvc_infile"
145 msvclibmode=true
146 break
147 fi
148 done
145 fi 149 fi
146 else 150 else
147 outfile=$(echo $base_infile | sed 's/\.a$/.dll/') 151 outfile=$(echo $base_infile | sed 's/\.a$/.dll/')
148 implibfile="$outfile.a" 152 implibfile="$outfile.a"
149 fi 153 fi