This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libffi support


On 23 April 2012 17:41, Philip Herron <redbrain@gcc.gnu.org> 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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]