ffihugs, Storable.so
Ross Paterson
ross@soi.city.ac.uk
Fri, 25 Oct 2002 11:46:52 +0100
On Fri, Oct 25, 2002 at 11:23:22AM +0100, Alastair Reid wrote:
> > Levent (and Oliver Braun) asked why ffi-using modules are compiled
> > in the install directories (rather than in the build tree and merely
> > copied on install, like everything else). Is that because the
> > alternative doesn't work if your build tree is full of symbolic
> > links, due to path canonicalization?
>
> I think it is currently necessary to install HsFFI.h for ffihugs to
> work because it expects it to be in {Hugs}/include.
>
> Specifying something like +L'-I$build_dir/includes' when invoking
> ffihugs might be enough to fix it.
>
> If you wanted to try to overcome this in the C code instead of the
> makefile, the code is: [...]
I think the Makefile is definitely the place. We can change {Hugs}
temporarily by setting the HUGSDIR environment variable.
> As far as I know, symbolic links are not an issue (though I guess it's
> possible).
They are a problem, but it seems I'm the only one using them.