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 |
If you don't set the flags or use a build script it will default to the architecture if your machine.
|
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? |
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 |
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. |
Thanks for the reply....
|
All times are GMT -5. The time now is 11:30 AM. |