Trying to build a ppc binary for 10.3.9 systems with a custom Makefile, and getting the following errors on compiling:
/usr/include/c++/4.0.0/cstdlib:165: error: ‘::_Exit’ has not been declared
/usr/include/c++/4.0.0/cstdlib:205: error: ‘__gnu_cxx::_Exit’ has not been declared
This is run from the Makefile
Code:
export MACOSX_DEPLOYMENT_TARGET=10.3
export NEXT_ROOT=$(PPC_SDK)
export SDKROOT=$(PPC_SDK)
/usr/bin/sudo gcc_select gcc33
Using the following (which I've pieced together from multiple sources)
Code:
PPC_SDK = /Developer/SDKs/MacOSX10.3.9.sdk
PPC_CPPFLAGS = -arch ppc -isystem $(PPC_SDK)/usr/include -F$(PPC_SDK)/System/Library/Frameworks -B$(PPC_SDK)/usr/include/gcc -B$(PPC_SDK)/usr/lib/gcc
PPC_LDFLAGS = $(PPC_CPPFLAGS) -W1,-syslibroot,$(PPC_SDK) -L$(PPC_SDK)/usr/lib/gcc/darwin/3.3
Build machine is OSX 10.5.7, i386, Xcode 3.1.2 installed.
The i386 build works fine, using /Developer/SDKs/MacOSX10.4u.sdk and gcc 4.0.
Ideas?