Skip to content

Commit

Permalink
BUILD.Windows: Add documentation to handle the libtool change.
Browse files Browse the repository at this point in the history
With the recent change to libtool, the default behavior is to use
MinGW's 'ld'. Set the LD variable to direct it to Visual Studio's
linker.

The wordings for the documentation is copied from INSTALL.

Signed-off-by: Gurucharan Shetty <[email protected]>
  • Loading branch information
shettyg committed Jan 31, 2014
1 parent 57cfceb commit 20bd44f
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions BUILD.Windows
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,20 @@ Visual studio's linker is used.
* Get the Open vSwitch sources from either cloning the repo using git
or from a distribution tar ball.

* Run ./boot.sh; ./configure CC=./build-aux/cccl; make
(cccl is a wrapper script that provides the right options to Visual c++
'cl' compiler.)
* If you pulled the sources directly from an Open vSwitch Git tree,
run boot.sh in the top source directory:

% ./boot.sh

* In the top source directory, configure the package by running the
configure script. You should provide some configure options to choose
the right compiler, linker, libraries, Open vSwitch component installation
directories, etc. For example,

% ./configure CC=./build-aux/cccl LD="`which link`" LIBS="-lws2_32 ..." \
--prefix="C:/openvswitch/usr" --localstatedir="C:/openvswitch/var" \
--sysconfdir="C:/openvswitch/etc"

* Run make for the ported executables in the top source directory, e.g.:

% make utilities/ovs-vsctl.exe ovsdb/ovsdb-server.exe

0 comments on commit 20bd44f

Please sign in to comment.