LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   cross compiling (https://www.linuxquestions.org/questions/linux-software-2/cross-compiling-414316/)

cerin 02-11-2006 06:23 PM

cross compiling
 
I want to cross compile some c++ code from linux to mac os x(10.3). I've seen things about doing it with gcc, but I can't find what exactly I need because there are so many options. More specifically the compilation will go onto an iBook G4.

Linux.tar.gz 02-11-2006 11:47 PM

I don't know much about compiling, but i do this:

before ./configure, i export some environment variables like:
export CFLAGS="-O3 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer"
then i do:
./configure CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
then make


All times are GMT -5. The time now is 06:48 AM.