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 > >>> [EMAIL PROTECTED] > >>> 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 > > [EMAIL PROTECTED] > > 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 [EMAIL PROTECTED] www.engelschall.com ______________________________________________________________________ The OpenPKG Project www.openpkg.org User Communication List openpkg-users@openpkg.org