LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   compiling for i686 (https://www.linuxquestions.org/questions/linux-newbie-8/compiling-for-i686-168473/)

SVN 04-10-2004 01:57 PM

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?

jailbait 04-10-2004 02:41 PM

"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

SVN 04-11-2004 04:09 AM

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?

jailbait 04-11-2004 11:40 AM

"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

SciYro 04-11-2004 04:24 PM

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)


All times are GMT -5. The time now is 12:03 AM.