![gcc for mac os x 10.6 gcc for mac os x 10.6](https://i.ytimg.com/vi/rzNnkApsNAs/maxresdefault.jpg)
Mac OS X 10.6 has GCC 4.2 as the default compiler, which won't work for the Mac OS X 10.4 SDK.įor the moment we are using "ANSI" (-disable-unicode, default) for Mac OS X 10.3 and earlier,Īnd "UNICODE" (-enable-unicode, optional) for Mac OS X 10.4 and later.Ĭode::Blocks currently uses wxMac (wxOSX/Carbon), which is 32-bit only. When building for older versions of the SDK, you want to make sure to use the same compiler. See Technical Note TN2137: Building Universalīinaries from "configure"-based Open Source Projects
![gcc for mac os x 10.6 gcc for mac os x 10.6](https://i.stack.imgur.com/7EDZh.png)
(You only need the sysroot parameter on PowerPC Macintosh, not on a Intel Macintosh) The basic flags that needs to be added are:ĬFLAGS += "-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"ĬXXFLAGS += "-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
#Gcc for mac os x 10.6 code
These are binaries that contain code for both PowerPC ("ppc" arch) and Intel ("i386" arch)
![gcc for mac os x 10.6 gcc for mac os x 10.6](https://wiki.haskell.org/wikiupload/4/47/SubEthaEdit.png)
If you are building for Mac OS X 10.4 or later, you might want to build " Universal Binaries " Note that this will replace the system version of glibtool, which might have some compatibility issues with building other software. configure -prefix=/usr -program-prefix=g The following instructions will overwrite your current version of libtool with the one you just downloaded.
#Gcc for mac os x 10.6 install
If you would rather have the new version to be called when calling "automake", let it install into /usr/local and put /usr/local/bin before /usr/bin in your PATH.ĭownload libtool source. Since it's now known as "automake-1.9", it won't interfere with the regular "automake" Sudo cp -pi /usr/share/aclocal/libtool.m4 /usr/local/share/aclocal-1.9/ configure -prefix=/usr/local -program-suffix=-1.9 You can download " automake-1.9.6.tar.gz" and configure and install it with something like:
#Gcc for mac os x 10.6 registration
You need a (free) developer registration with Apple first, in order to log in there.įor Mac OS X 10.4, you want (at least) Xcode 2.2, since earlier versions were buggy.ĭepending on your OS version, you might need to download and compile new versions of these:Ĭheck what you have, with -version (note that GNU libtool is called "glibtool" on Mac OS X)Ĭurrently Code::Blocks requires versions: Old developer tools can be downloaded from ADC at If they didn't come bundled with Mac OS X, get the Xcode Tools (or Developer Tools for older Mac OS X) from or from your install disk.Īpple regularly pulls all older links in order to promote newer Mac OS X, but all the