[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openpkg-users
Subject:    Re: 32-bit AIX
From:       "Ralf S. Engelschall" <rse () openpkg ! org>
Date:       2006-10-13 6:32:51
Message-ID: 20061013063251.GA33618 () engelschall ! com
[Download RAW message or body]

On Wed, Oct 11, 2006, Doug Summers wrote:

> Ralf S. Engelschall wrote:
> >On Wed, Oct 11, 2006, Doug Summers wrote:
> >
> >>Ralf S. Engelschall wrote:
> >>>On Tue, Oct 10, 2006, Doug Summers wrote:
> >>>
> >>>>Is there a way to determine this with %l_platform? When building GCC I
> >>>>need to add --disable-multilib on AIX 5.x machines using the 32-bit
> >>>>kernel.
> >>>No, %l_platform internally is based on "shtool platform" and this has no
> >>>knowledge about difference bit-sizes of an OS like AIX. So you have to
> >>>first check for AIX via l_platform and then do an AIX specific check for
> >>>32-bit yourself.
> >>>
> >>>                                      Ralf S. Engelschall
> >>>                                      rse@engelschall.com
> >>>                                      www.engelschall.com
> >>>
> >>>______________________________________________________________________
> >>>The OpenPKG Project                                    www.openpkg.org
> >>>User Communication List                      openpkg-users@openpkg.org
> >>OK - how do I determine this with 'shtool platform'? I tried using
> >>'shtool platform -t' but it complains about needing a type? Can you give
> >>me a hint?
> >
> >case "%{l_platform -p}" in
> >   *-aix* )
> >       #   FIXME: do your AIX-specifics here
> >       ;;
> >esac
> >                                       Ralf S. Engelschall
> >                                       rse@engelschall.com
> >                                       www.engelschall.com
> >
>
> OK - here's what I did (building now):
>
> case "%{l_platform -t}" in
>  ix86*-sunos* )
>      l_with_gnu_ld_as="${l_with_gnu_ld_as} --disable-multilib" ;;
>  *-aix* )
>    case `/usr/sbin/bootinfo -K` in
>      32) l_with_gnu_ld_as="${l_with_gnu_ld_as} --disable-multilib" ;;
>    esac
> esac
>
> If I could past the OpenPKG build on AIX 4.3.3 I could test this there.

Ok, I've added a similar check to gcc in CURRENT now.

                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      openpkg-users@openpkg.org
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic