I thought everyone knew. OK, I will write up some text for INSTALL. On May 8, 2014 11:31 PM, "Andy Zhou" <az...@nicira.com> wrote:
> This is great and I was not aware of this. Although I knew GCC and GDB > builds support build directories. > > IMHO, It will be helpful to other developers as well. > > On Thu, May 8, 2014 at 9:42 PM, Ben Pfaff <b...@nicira.com> wrote: > > 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 >
_______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev