Error when building universal binary

Anders Bergh anders1 at gmail.com
Tue Aug 5 08:39:24 PDT 2008


On Tue, Aug 5, 2008 at 4:10 PM, Jacob Carlborg <doobnet at gmail.com> wrote:
> I'm trying to build a universal binary on Mac OS X 10.5.4 using the gdc
> bundle from the tango website:
> http://www.dsource.org/projects/tango/wiki/GdcDownloads
>
> I'm using the "-arch" option and I get this error:
> cc1d: error: unrecognized command line option "-arch"
> (it doesn't matter if I use gdc or gdmd)
>
> Doesn't gdc support the "-arch" option? I thought that if it worked with gcc
> it would also work with gdc.
>

The gdc in the bundle probably doesn't have the Apple gcc patches,
it's pretty easy to compile your own gdc using the gcc from
developer.apple.com/opensource though... and that will support -arch.

-- 
Anders


More information about the D.gnu mailing list