This parameter will be used by various accessibility macros located in the headers. This means that you can require a minimal OS version, even if you have a more recent SDK (i.e. Target 10.5 with 10.6 SDK). Using API 10.6 when configuring 10.5 will result in a warning and the API will be associated with the value of the weak_import attribute.
Most Apple API headers contain accessibility macros for each class, method, function, or enumeration to declare for each of them:
- Minimum OS Supported
- Renouncement
- Unavailability
- ...
Macros look like this:
AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATERAVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED- ...
In terms of architecture, it depends only on the available architectures in the SDK binaries. For example, with 10.5 SDKs you can target four architectures (Intel / 32bits, PowerPC / 32bits, Intel / 64bits, PowerPC 64bits), and with 10.6 SDKs you can only use three architectures (Intel / 32bits, PowerPC / 32bits, Intel / 64bit).
As you use Snow Leopard, you can either target i386 (Intel / 32bits), ppc (PowerPC / 32bits), or x86_64 (Intel / 64bits) very simply by passing this architecture variant:
gcc -arch i386
or like this (for configuration based projects):
CFLAGS="-arch i386" LDFLAGS="-arch i386" ./configure
Laurent Etiemble May 28 '10 at 7:08 a.m. 2010-05-28 07:08
source share