[Fluxus] fluxus, racket and libffi linking problem
Stefano Sabatini
stefano.sabatini-lala at poste.it
Sun Jun 12 09:07:34 PDT 2011
On date Sunday 2011-06-12 16:56:13 +0200, gabor papp wrote:
> hi Stefano,
>
> >ffi looks a dependency of libracket, I wonder what's the assumed way
> >for getting the required LDFLAGS for it (I'm used to do pkg-config
> >--libs PKG, but can't even found a the .pc files in racket) and I'm
> >not a scons expert so I don't know how to immediately fix my build.
> i cannot test it, so i'm just guessing here, but try something like
> the attached patch.
>
> best,
> gabor
>
> --- SConstruct.libffi 2011-06-12 16:53:15.000000000 +0200
> +++ SConstruct 2011-06-07 14:03:08.000000000 +0200
> @@ -207,7 +207,6 @@ if env['PLATFORM'] == 'posix':
> LibList += [["GL", "GL/gl.h"],
> ["GLU", "GL/glu.h"],
> ["glut", "GL/glut.h"],
> - ["ffi", "ffi.h"],
> ["asound", "alsa/asoundlib.h"],
> ["openal", "AL/al.h"]]
>
Uhm I suppose this is the inverted patch.
I fixed the problem in a different way (compiling libracket as a
shared object), your patch should fix it with the static lib but it'll
break the next time libracket will require another library (and is
forcing dependency on libffi even when it is not required), so I
wonder if a more general approach is available (adding pkg-config
support to racket may be an option).
Best
More information about the Fluxus
mailing list