LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 02-11-2006, 05:23 PM   #1
cerin
LQ Newbie
 
Registered: Dec 2005
Distribution: MEPIS
Posts: 14

Rep: Reputation: 0
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.
 
Old 02-11-2006, 10:47 PM   #2
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,116

Rep: Reputation: 85
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross Compiling dosnlinux Programming 5 03-01-2006 11:12 AM
wx widget and cross compiling guideweb Programming 0 09-20-2005 11:06 PM
cross-compiling? jon_k Programming 3 12-09-2004 09:36 AM
cross compiling with g++ hornofsalvation Linux - Newbie 2 10-09-2004 10:29 PM
Cross compiling - Windows Xp -> Linux groston Programming 1 05-31-2002 03:19 AM


All times are GMT -5. The time now is 08:54 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration