View Single Post
Old 7th January 2008, 02:57 PM   #2
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,564
Default Re: Compiling for GNU/Linux, OSX, and XP

OS X is slightly different to Linux

from a makefile:

Quote:
UNIVERSAL=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4

CFLAGS= -dynamic -DMAC -DMACINTOSH -I${INCLUDE} ${UNIVERSAL}
CC=g++
LD=g++
Andy is offline   Reply With Quote