[adtools] Re: libstdc++-v3 Multilib Support

  • From: Trevor Scroggins <trevor.scroggins@xxxxxxxxx>
  • To: adtools@xxxxxxxxxxxxx
  • Date: Wed, 7 Jul 2010 15:49:21 -0700

Hi,

On Wed, Jul 7, 2010 at 2:58 PM, Sebastian Bauer
<mail@xxxxxxxxxxxxxxxxxxx> wrote:
>
> What I meant was to add
>
> MULTILIB_OPTIONS = mcrt=clib2
> MULTILIB_DIRNAMES = clib2

Ah, I see. We would then have:

lib/gcc/ppc-amigaos/4.2.4
lib/gcc/ppc-amigaos/4.2.4/clib2
lib/gcc/ppc-amigaos/4.2.4/clib2/soft-float
lib/gcc/ppc-amigaos/4.2.4/soft-float

With /lib/clib2/* built with 'xgcc ... -mcrt=clib2 ...'. The default
newlib libraries would stay in lib/gcc/ppc-amigaos/4.2.4.

Do we get appropriate headers in
lib/gcc/ppc-amigaos/4.2.4/include/c++/ppc-amigaos/* for free?

> If you know another possibility how to compile the newlib and clib2 stuff in
> one run, please let me know.

I think your idea has merit. I'll look at it, too.

> Yes, I think (but others may correct me) that currently only newlib/hard-float
> is supported for shared objects. I don't know whether it is possible to
> distinguish between different natures of shared objects (i.e., if a program is
> linked against newlib it should use a newlib shared object, if it is linked
> against clib, it uses the clib shared object).

I think Linux accomplishes this by linking to an appropriate loader.

Trev
-- 
______________________________________________________________________________
Amiga Development tools ML - //www.freelists.org/list/adtools
Homepage...................: http://www.sourceforge.net/projects/adtools
Listserver help............: mailto:adtools-request@xxxxxxxxxxxxx?Subject=HELP

Other related posts: