On Fri, May 09, 2014 at 01:37:19PM +0900, YAMAMOTO Takashi wrote: > > On Fri, May 09, 2014 at 01:26:03PM +0900, YAMAMOTO Takashi wrote: > >> sorry, i didn't know builddir can be different from srcdir. > > > > I guess not everyone builds that way but I like to have multiple > > builddirs so that I can easily do both Clang and GCC builds off a single > > source tree. > > sounds useful. can you share a recipe in INSTALL?
It is the same form as with every project built with Autoconf and Automake. # Basic setup. cd ovs ./boot.sh # First build dir. # # I name my builddirs beginning with "_". It is only a # personal convention, although I think I got it from Paul Smith (see # http://mad-scientist.net/make/). mkdir _build (cd _build && ../configure && make) # Second build dir. mkdir _clang (cd _clang && ../configure CC=clang && make) # And then after that you can just run "make" in both directories. I # use a simple script. I am not sure that it is worth describing in INSTALL, because I am not sure that most developers want to do it. _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev