git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
classifier: Use array for subtables instead of a list.
[sliver-openvswitch.git]
/
build-aux
/
cccl
diff --git
a/build-aux/cccl
b/build-aux/cccl
index
a00b7f8
..
d6915aa
100644
(file)
--- a/
build-aux/cccl
+++ b/
build-aux/cccl
@@
-33,13
+33,9
@@
EOF
exit $1
}
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)
case $MACHTYPE in
*-msys)
- slash="
//
"
+ slash="
-
"
;;
*)
slash="/"
;;
*)
slash="/"
@@
-90,20
+86,18
@@
EOF
-g[0-9] | -g)
# cl only supports one debugging level
clopt="$clopt ${slash}Zi"
-g[0-9] | -g)
# cl only supports one debugging level
clopt="$clopt ${slash}Zi"
+ linkopt="$linkopt ${slash}DEBUG"
;;
-L*)
path=`echo "$1" | sed 's/-L//'`
;;
-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//'`
;;
-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"
clopt="$clopt $lib"
linkopt="$linkopt $lib"
@@
-191,11
+185,11
@@
fi
# choose which opts we built up based on which program will actually run
if test x$prog = xcl ; then
# 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
else
opts=$linkopt
fi
-
#
echo "$prog $opts"
+echo "$prog $opts"
exec $prog $opts
exit 0
exec $prog $opts
exit 0