cccl: Provide '-' before the options instead of double slash.
authorGurucharan Shetty <gshetty@nicira.com>
Sun, 17 Nov 2013 02:49:06 +0000 (18:49 -0800)
committerGurucharan Shetty <gshetty@nicira.com>
Wed, 20 Nov 2013 15:16:34 +0000 (07:16 -0800)
While compiling Open vSwitch with visual c++ in
a mingw environment, I have observed that "//" before
options does not work for all the compiler options of
MSVC. Using "-" on the other hand seems to work.

Also, echo the command line options passed to
the MSVC compiler.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
build-aux/cccl

index a00b7f8..c614ecb 100644 (file)
@@ -39,7 +39,7 @@ PATH=`echo $PATH | sed -e "s#/usr/bin:##" | sed -e "s#/bin:##"`:/usr/bin
 
 case $MACHTYPE in
     *-msys)
-        slash="//"
+        slash="-"
         ;;
     *)
         slash="/"
@@ -196,6 +196,6 @@ else
     opts=$linkopt
 fi
 
-#echo "$prog $opts"
+echo "$prog $opts"
 exec $prog $opts
 exit 0