netkas
03-12-2008, 10:12 PM
it's to compile e.g. console utils, like sshd
so , open terminal.app
type this
export CFLAGS="-I/Developer/Platforms/Aspen.platform/Developer/usr/lib/gcc/arm-apple-darwin9/4.0.1/include/ -I/Developer/Platforms/Aspen.platform/Developer/SDKs/Aspen1.2.sdk/usr/include -I/Developer/Platforms/Aspen.platform/Developer/usr/include/ -I/Developer/Platforms/AspenSimulator.platform/Developer/SDKs/AspenSimulator1.2.sdk/usr/include"
export CPP="/Developer/Platforms/Aspen.platform/Developer/usr/bin/cpp-4.0"
export CPPFLAGS=$CFLAGS
export LDFLAGS="-L/Developer/Platforms/Aspen.platform/Developer/SDKs/Aspen1.2.sdk/usr/lib/"
export PATH="$PATH:/Developer/Platforms/Aspen.platform/Developer/usr/bin/"
now, cd to dir with ur app (e.g. openssh)
./configure --host=arm-apple-darwin9 --build=i386-apple-darwin9.2.0
if u have powerpc mac, then replace i386 with powerpc
make and u done :D
so , open terminal.app
type this
export CFLAGS="-I/Developer/Platforms/Aspen.platform/Developer/usr/lib/gcc/arm-apple-darwin9/4.0.1/include/ -I/Developer/Platforms/Aspen.platform/Developer/SDKs/Aspen1.2.sdk/usr/include -I/Developer/Platforms/Aspen.platform/Developer/usr/include/ -I/Developer/Platforms/AspenSimulator.platform/Developer/SDKs/AspenSimulator1.2.sdk/usr/include"
export CPP="/Developer/Platforms/Aspen.platform/Developer/usr/bin/cpp-4.0"
export CPPFLAGS=$CFLAGS
export LDFLAGS="-L/Developer/Platforms/Aspen.platform/Developer/SDKs/Aspen1.2.sdk/usr/lib/"
export PATH="$PATH:/Developer/Platforms/Aspen.platform/Developer/usr/bin/"
now, cd to dir with ur app (e.g. openssh)
./configure --host=arm-apple-darwin9 --build=i386-apple-darwin9.2.0
if u have powerpc mac, then replace i386 with powerpc
make and u done :D