LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 09-10-2004, 12:13 PM   #1
Burna
LQ Newbie
 
Registered: Jul 2003
Location: Beijing - Berlin - Beijing
Distribution: Slackware 10.0
Posts: 12

Rep: Reputation: 0
what are the defaults for cpu (i386, i486...) when compiling


Hello Folks
I use checkinstall to create my own Slackware packages on Slackware 10.0. I always end up with some i386-packages since Checkinstall doesn't seem to recognize which flags were set (I haven't set any since I'm a newbee in this regard). Besides of this, I was wondering when compiling packages by using ./configure make make install, what environment variable is set by default (i386 or i486?, because all slack-packages are i486?)? And how could I change this if I would like to compile i686-packages as default?
Thanx in advance
Burna
 
Old 09-10-2004, 04:51 PM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,724

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
If you don't set the flags or use a build script it will default to the architecture if your machine.
 
Old 09-10-2004, 09:54 PM   #3
Burna
LQ Newbie
 
Registered: Jul 2003
Location: Beijing - Berlin - Beijing
Distribution: Slackware 10.0
Posts: 12

Original Poster
Rep: Reputation: 0
Post

You mean, I have Pentium 4 and I get automatically i686 packages and do not need to change anything on the setup? I found these flags on the web.

CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer"

Would it make sense to use them and then where to put them on the right place?
 
Old 09-10-2004, 10:53 PM   #4
Skazi
Member
 
Registered: Aug 2004
Location: Minneapolis, MN, USA
Distribution: Slackware 13.1
Posts: 82

Rep: Reputation: 15
Where is the architecture for the machine stored?

I know you can use 'arch' or 'uname -m' to find out. But where do these utilities get it from?

Thanks
 
Old 09-10-2004, 11:55 PM   #5
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,724

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
uname is included. the compiler finds your machines arch.
This is the standard slackware CFLAGS line which will give you stuff compiled like slackware:
CFLAGS="-O2 -march=i486 -mcpu=i686"
See the thread:
http://www.linuxquestions.org/questi...hreadid=144372
I don't know what checkinstall will do with the names. I make my own pkgs using makepkg since the pkgs usually have to be exploded and tweaked anyway.
 
Old 09-11-2004, 02:14 AM   #6
Burna
LQ Newbie
 
Registered: Jul 2003
Location: Beijing - Berlin - Beijing
Distribution: Slackware 10.0
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks for the reply....
 
  


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
i x86, i386, i486, i586, i686 am confused?!! oldi Linux - Hardware 5 10-04-2006 09:04 AM
fedora linux: meaning of i386, i486, i686? afa_linux Linux - General 1 10-16-2005 11:14 AM
machine arch and cpu (i486/i686) abs Slackware 6 08-22-2004 08:28 AM
i386, i486...i686...the difference? matthurne Linux - General 2 04-15-2004 09:31 AM
ISO Versions---> i386, i486, i586 Which one is for me JDeer0618 Linux - Software 8 10-27-2003 01:52 PM


All times are GMT -5. The time now is 12:15 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 Google+: linuxquestions
Open Source Consulting | Domain Registration