This is the mail archive of the gcc@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: Ada rts fails to build on ppc64?


This is for Joel :). 

I know nothing about autoconf, near to nothing about Makefile
and I don't even know what multilib are for (I never found any
documentation about them :).

Laurent

On Mon, 2007-09-17 at 16:20 -0400, Jack Howarth wrote:
> Laurent,
>     I would suggest you start over using the libgfortran as your
> example. Geoffrey Keating created the config/multi.m4 file which
> dramatically simplified how the multilib could be implemented.
> If I recall correctly from when I helped clean up some of
> the residual multilib problems (so they used multi.m4), you
> just need in configure.ac...
> 
> AM_ENABLE_MULTILIB(, ..)
> 
> ...and for the 'Calculate toolexeclibdir' section...
> 
>     toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
> 
> ...and...
> 
> if test ${multilib} = yes; then
>   multilib_arg="--enable-multilib"
> else
>   multilib_arg=
> fi
> 
> ...before you write your Makefile in configure.ac. You might also
> need the lines for multi_os_directory as well. When you regenerate
> the aclocal.m4 or configure don't forget to use '-I ../config' for
> autoconf so that it can find the multi.m4 in the top level config
> directory.
>              Jack
> 
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]