Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 02-11-2006, 06:23 PM   #1
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, 11:47 PM   #2
Senior Member
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,518

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


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

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

All times are GMT -5. The time now is 09:17 PM.

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