Separating build tree from the source tree

Jan Stolarek jan.stolarek at p.lodz.pl
Tue Dec 18 21:45:41 CET 2012


Dnia wtorek, 18 grudnia 2012, Simon Marlow napisał:
> On 18/12/12 10:09, Jan Stolarek wrote:
> > It turns out that running 'perl boot' in symlinked directory (ghc-build)
> > is not enough. I had to run 'perl boot' in the original ghc-working dir
> > and now configure succeedes in ghc-build.
>
> You shouldn't do that, because now you have build files in your source
> directory.
I know. That's why I didn't do it at first and only later thought that this might be the right way 
of doing things. Clearly, it is not.

> The workaround is to link your .git directory from your build tree, like
> so:
>
>   $ cd ghc-build
>   $ ln -s $source/.git .
>
> where $source is your source tree.
Right now I'm on Suse and this solution works - warning is gone and configure determines version 
correctly. I'll report on Debian on Thursday.

Janek



More information about the Glasgow-haskell-users mailing list