gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GDL2 on Mac OS X, stage two


From: Markus Hitter
Subject: Re: GDL2 on Mac OS X, stage two
Date: Mon, 30 Dec 2002 12:44:52 +0100


Am Montag, 30.12.02 um 00:59 Uhr schrieb Nicola Pero:


Then, I had to insert the compatibility headers, surrounded by "#ifdef
__APPLE__"

Is there another way to check for OSX ?

I'm not sure when/if __APPLE__ is defined.  If you are running GNUstep
base on Apple (with the GNU runtime or maybe even with the Apple runtime), assuming that to be possible at some point, I'm not sure what happens with
__APPLE__.

Depends on which compiler you use. The __APPLE__ define is built OS X' default compiler:

Nobile:~$ rm bla.c
Nobile:~$ touch bla.c
Nobile:~$ gcc -v bla.c
Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs
Thread model: posix
Apple Computer, Inc. GCC version 1161, based on gcc version 3.1 20020420 (prerelease) /usr/libexec/gcc/darwin/ppc/cpp-precomp -smart -arch ppc -lang-c -v -D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -D__APPLE_CC__=1161 -D__ppc__ -D__POWERPC__ -D__NATURAL_ALIGNMENT__ -D__MACH__ -D__BIG_ENDIAN__ -D__APPLE__ -D__ppc__ -D__POWERPC__ -D__NATURAL_ALIGNMENT__ -D__MACH__ -D__BIG_ENDIAN__ -D__APPLE__ -D__NO_INLINE__ -D__STDC_HOSTED__=1 -D__DYNAMIC__ bla.c -isystem /usr/include/gcc/darwin/3.1 -ispecs=/usr/libexec/gcc/darwin/ppc/3.1/specs -D__SIZE_TYPE__=long unsigned int -D__PTRDIFF_TYPE__=int -D__WCHAR_TYPE__=int -D__WINT_TYPE__=unsigned int /var/tmp//cc6NlKqd.i
...


I suppose the main problem is that keeping two separate build systems for
the same package can be quite tiresome.

IMHO, not too much as long as they don't hobble each other. Plus, makes it easier for OS X users as they don't have to install GNUstep make and/or any other GNUstep package.

You always can fall back to using GNUstep make on OS X if the PBX stuff gets out of date.


Cheers,
Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/






reply via email to

[Prev in Thread] Current Thread [Next in Thread]