On Thu, 25 Mar 2010 08:36:19 Dmitrijs Ledkovs wrote: > After spending a lot of time in Debian chroot's used for building > package I thought that there must be an easier way of building > circular dependencies. > > The cunning feature is to build --with-sysroot & --with-build-sysroot. > Binutils & GCC support that. > > In my debian packages I currently build with --prefix=/usr > --with-sysroot=/usr and now --with-build-sysroot=$(CURDIR)/sysroot > > This way I can build each package in turn (binutils, headers, all-gcc, > crt, intall-gcc) with above configure options, and after each steps > doing $make install DESTDIR=$(CURDIR)/sysroot. > > The benefit is that now you can do a local self-contained build with > $build_sysroot without installing anything into the intended $sysroot > for end-users. > > The need is for debian packaging ;-) I can now walk into the buildd > jail with all sources and walk out with working cross-compiled > ready-for-consumption binary packages. > > The hack is very crude and I understand that it might be rejected. Oh > well, at least I've tried.
Hmm. I actually extended the idea even further locally, which hacks up the gcc build process in such a way that in a combined tree (headers and crt separate). It basically does the following: 1) Builds and installs the headers into the build-sysroot prior to building gcc 2) Builds and installs the crt into build-sysroot prior to configuring the target libgcc. 3) During the install phase, it installs into the sysroot. I am lazy though, and hacked up my tree pretty good so that things are installed into the places *I* believe they should be installed (and also removed some things *I* don't believe should be there), so that may be why it works well for me :) ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
