<sys/isa_defs.h> vs. |_LP64| vs. 32bit/64bit usr/include/ast/ merge / was: Re: [ksh93-integration-discuss] Re: [osol-code] ksh93-integration prototype004 2007-01-27 webref+diff

Joerg Schilling Joerg.Schilling at fokus.fraunhofer.de
Tue Feb 6 02:36:44 PST 2007


Roland Mainz <roland.mainz at nrubsig.org> wrote:

> The problem doesn't affect you directly.
> The issue is that we need a way to distingish between 32bit and 64bit
> because we merge arch/${platform}/inlcude/ast/ includes from 32bit and
> 64bit builds via "/usr/bin/diff -D<symbol>". The problem is that we
> can't use |_LP64| for <symbol> since the Sun Workshop/Forte/Studio
> compilers do not set |_LP64| (gcc set it, e.g.
> -- snip --
> $ (touch foo.h; /usr/sfw/bin/cpp -m64 -dM foo.h) | fgrep _LP64
> #define __LP64__ 1
> #define _LP64 1
> -- snip --
> ) and "injecting" a |#include <sys/isa_defs.h>| will fork() the includes

get a "schily" source package that contains a recent copy of the Schily 
Makefilesystem. This is e.g. SCCS ftp://ftp.berlios.de/pub/sccs/

then look at include/schily/archdefs.h

It contains the right tests for you.

Jörg

-- 
 EMail:joerg at schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       js at cs.tu-berlin.de                (uni)  
       schilling at fokus.fraunhofer.de     (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily



More information about the ksh93-integration-discuss mailing list