LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-10-2004, 02:57 PM   #1
SVN
LQ Newbie
 
Registered: Mar 2004
Location: Belgium
Distribution: Gentoo
Posts: 11

Rep: Reputation: 0
compiling for i686


I want to compile and create some slackware packages for my own.
For which architecture will they be compiled? the architecture of my processor or do I have to add some flags or something?
 
Old 04-10-2004, 03:41 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,750

Rep: Reputation: 271Reputation: 271Reputation: 271
"I want to compile and create some slackware packages for my own.
For which architecture will they be compiled? the architecture of my processor or do I have to add some flags or something?"

That is controlled by the -mcpu option. For i686 you want:
-mcpu=i686

See:
man gcc

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 04-11-2004, 05:09 AM   #3
SVN
LQ Newbie
 
Registered: Mar 2004
Location: Belgium
Distribution: Gentoo
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by jailbait
That is controlled by the -mcpu option. For i686 you want:
-mcpu=i686
If I don't at -mcpu=i686 will it automatically compile for i386 when I do ./configure?
 
Old 04-11-2004, 12:40 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,750

Rep: Reputation: 271Reputation: 271Reputation: 271
"If I don't at -mcpu=i686 will it automatically compile for i386 when I do ./configure?"

I think so. i386 is always what I get when I do compiles and I never specify the target cpu type.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 04-11-2004, 05:24 PM   #5
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
it should auto detect it for you, but just to be safe you should specify it (well, only if your really trying to compile with your system in mind)
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I specify i686 arch/cpu when compiling? Seiken Slackware 16 07-29-2006 12:22 PM
trouble compiling i686 kernel? mma8x Linux - General 1 11-07-2005 07:11 AM
Compiling Firefox with i686 optimizations? Jacksteruk309 Linux - Newbie 3 10-19-2005 01:22 PM
compiling from source with i686 optimizations ganja_guru Linux - Software 6 11-08-2004 10:26 AM
1586 vs i686 compiling? wrc1944 Linux - General 3 08-02-2002 10:56 AM


All times are GMT -5. The time now is 02:14 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration