Re: libffi support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 23 April 2012 17:41, Philip Herron <redbrain@xxxxxxxxxxx> wrote:
> Hey
>
> I am trying to build my front-end and its runtime library with libffi
> support i am using:
>
> AC_ARG_WITH(libffi,
>  AS_HELP_STRING([--without-libffi],
>                 [don't use libffi]),
>  [:],
>  [with_libffi=${with_libffi_default-yes}])
>
> LIBFFI=
> LIBFFIINCS=
> if test "$with_libffi" != no; then
>   AC_DEFINE(USE_LIBFFI, 1, [Define if we're to use libffi.])
>   LIBFFI=../libffi/libffi_convenience.la
>   LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
> fi
> AC_SUBST(LIBFFI)
> AC_SUBST(LIBFFIINCS)
>
> in my configure.ac and its adding the flags necessary but it doesn't
> seem to be building libffi before my runtime library i noticed in
> Makefile.def in the toplevel i added:
>
> target_modules = { module= libgpython; };
>
> dependencies = { module=configure-target-libgpython;
> on=configure-target-libffi; };
> dependencies = { module=all-target-libgpython; on=all-target-libffi; };
>
> languages = { language=python;  gcc-check-target=check-python;
>                                lib-check-target=check-target-libgpython; };
>
> But it doesnt seem to have fixed the problem I am not quite sure how
> this whole build system fits together plus i am not 100% comfortable
> with autoconf in fear of messing things up.
>
> --Phil

Just to clarify i am not trying to build my front-end compiler itself
with ffi support just the runtime library. I had grammar fail.

--Phil



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux