X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=build-aux%2Fcccl;h=0c7f3d967c06a231c2d08df42b9071ca55854f79;hb=bdd534291ff72077390f7b1745c4443ad3833d99;hp=f6972d47482b0026da632fb13dbd103bc646e7ec;hpb=df85c52098277ddaef2d23f436f7d6d8df2f4239;p=sliver-openvswitch.git diff --git a/build-aux/cccl b/build-aux/cccl index f6972d474..0c7f3d967 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,7 +91,8 @@ 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*) @@ -192,7 +189,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