Cross compiling on the command line
Cross compiling on the command line
- Subject: Cross compiling on the command line
- From: Markus Hitter <email@hidden>
- Date: Sun, 9 Nov 2003 10:35:27 +0100
Hello all,
just thought I'd share my experiences with cross compiling on the
command line. As you know, there are tons of packages using "configure"
and "make" and usually they compile out of the box. Personally, I don't
use Fink or Darwinports because I have my own idea of where to place
the results ...
OK, so here is how to compile them on Panther (10.3) and make them work
on Puma (10.1). Of course, you need to have XCode and the 10.1
cross-SDK installed.
export MACOSX_DEPLOYMENT_TARGET=10.1
export NEXT_ROOT=/Developer/SDKs/MacOSX10.1.5.sdk
CFLAGS="-I/Developer/SDKs/MacOSX10.1.5.sdk/usr/include -O2" \
LDFLAGS="-L/Developer/SDKs/MacOSX10.1.5.sdk/usr/lib/" \
./configure
make
sudo make install
Sucessfully built two packages this way already and the results passed
all tests ... Thanks a lot to the XCode team to make this possible.
Have fun,
Markus
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.