On 12/5/06, André Detsch <[EMAIL PROTECTED]> wrote:
> On 12/5/06, Jonas Karlsson <[EMAIL PROTECTED]> wrote:
> > I'm just trying to build Xorg 7.1 and one thing that strikes me is that I
> > think that Compile spend more time at symlinking (and running ldconfig)
> > after each sub app has compiled then actully compiling the apps. Wouldn't
> > it be possible to set PATH and LD_LIBRARY_PATH to include the actual
> > directory, /Programs/Foo/1.2/bin and /Programs/Foo/1.2/lib respectively,
> > during the compilation of a meta recipe, instead of running symlinkprogram
> > each time?
>
> Sounds a good idea. Can you implement this and test with the Xorg
> recipe? Please ensure the changes do not affect regular (non-meta)
> recipes.

Won't work. PATH and LD_LIBRARY_PATH won't be enough. The proto stuff
installs headers. Then you'll have to handle C_INCLUDE_PATH. And if
something uses C++, then CPLUS_INCLUDE_PATH and so on and so on and so
on. It's hackish. And then some other recipe in the future may look
for share/ stuff which won't work unless properly symlinked. Doing
this is asking for meta-recipes to break in mysterious ways.

Instead, add a new flag "do_symlink=no" and set that on sub-recipes
that you can test and ensure that they don't need to be symlinked in
an intermediate step. This is the safest approach and will result in
the desired speedups. For example, you can skip symlinking on all
proto's and only symlink in the last one, so that when libs are
compiled, the proto headers are linked (yes, this depends on a proper
order for includes in the main recipe, but order is already relevant).

-- Hisham
_______________________________________________
gobolinux-devel mailing list
gobolinux-devel@lists.gobolinux.org
http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel

Reply via email to