X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=build-aux%2Fcccl;h=d6915aaffc9d4c18014937df419523f46a454a2a;hb=ec988646afe6aee6a63d6894a3e9b50f715d5941;hp=f6972d47482b0026da632fb13dbd103bc646e7ec;hpb=df85c52098277ddaef2d23f436f7d6d8df2f4239;p=sliver-openvswitch.git diff --git a/build-aux/cccl b/build-aux/cccl index f6972d474..d6915aaff 100644 --- a/build-aux/cccl +++ b/build-aux/cccl @@ -33,10 +33,6 @@ EOF exit $1 } -# Put /usr/bin last in the path, to avoid clashes with MSVC's link -# Ugly workaround, but should work -PATH=`echo $PATH | sed -e "s#/usr/bin:##" | sed -e "s#/bin:##"`:/usr/bin - case $MACHTYPE in *-msys) slash="-" @@ -95,16 +91,13 @@ EOF -L*) path=`echo "$1" | sed 's/-L//'` - linkopt="$linkopt /LIBPATH:$path" + linkopt="$linkopt ${slash}LIBPATH:$path" + cl_linkopt="${slash}link ${slash}LIBPATH:\"$path\"" ;; -l*) lib=`echo "$1" | sed 's/-l//'` - if [ $lib != "dnsapi" -a $lib != "ws2_32" -a $lib != "wsock32" ]; then - lib="lib$lib.lib" - else - lib="$lib.lib" - fi + lib="$lib.lib" clopt="$clopt $lib" linkopt="$linkopt $lib" @@ -192,7 +185,7 @@ fi # choose which opts we built up based on which program will actually run if test x$prog = xcl ; then - opts=$clopt + opts="$clopt $cl_linkopt" else opts=$linkopt fi