
bwaters+mac at aoc
Oct 5, 2004, 9:07 PM
Post #2 of 2
(402 views)
Permalink
|
On Oct 3, 2004, at 6:11 AM, Diego 'Flameeyes' Pettenò wrote: > There's a way to install gcc 3.4 on MacOSX (maybe tweaking it to > resolve > that bug), so that I can build libmatroska and my project? Probably just installing gcc-3.4 from source tarball via "make bootstrap" would work... but here is an email from the darwin-developers list: > From: shebs [at] apple > Subject: Re: gcc3.4 plus Apple's gcc3.3 > Date: September 30, 2004 4:11:29 PM MDT > To: jmzorko [at] mac > Cc: darwin-dev [at] lists > jmzorko [at] mac wrote: > >> >> Hello, all ... >> >> I am involved in porting a C++ class framework we use at work to OSX >> / Darwin PPC so we can target OSX as well as Win32 and Linux. This >> code demands gcc3.4, which shouldn't be an issue (gcc3.4 "make >> bootstrap" seemed to work just fine on my 1.33GHz 12" PowerBook), but >> I would like to, if possible, use gcc-select to choose between >> Apple's gcc3.3 and FSFs gcc3.4. Has anyone else done this? I've not >> researched how I would approach doing this yet (this posting is part >> of that research <smile>). > > It's just a shell script that you could hack up, but I don't recommend > you try - FSF 3.4 is missing dozens of features essential to building > Mac apps, such as framework path searching, alignment pragmas, and > similar kinds of bits. Some of those features are needed by system > headers and could cause interesting (heh) runtime problems. Ultra > portable pure ISO/K&R C code, such as what GCC itself is written in > (for reasons that should be obvious), will be OK, but just one Cocoa > or Carbon call can mess you up. > > So I recommend you install gcc-3.4 under its own name only, and > have all of your 3.4-using code ask for 3.4 explicitly by name. > > Stan -- gentoo-osx [at] gentoo mailing list
|