Stupid Linux Question (SlackBuild)

BlackOmen

Senior member
Aug 23, 2001
526
0
0
This is a really stupid question and a simple yes/no answer will probably suffice.

So I just downloaded some package source from the slackware-current archive and executed the build script (SlackBuild). Does this compile the package (with whatever architecture optimizations) for an i686 (AMD Duron, gcc 2.95.3) as opposed to i386 that the default packages are compiled for.

Like I said, yes/no answer will probably suffice. TIA.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Probably not. Take a look at the makefile for more information. Or provide a good link to the package you downloaded so I can take a look :p
 

BlackOmen

Senior member
Aug 23, 2001
526
0
0
I didn't see anything indicative in the makefile. To build the package from source, I needed all of the files here.
Granted this isn't a package where optimizations are critical (Pine), however I would probably like to do this with X and WindowMaker.

I did a coupel of search combinations on Google and got links to packages, go fig......
Thanks n0c.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
I cant connect to that ftp, but here are a couple of ideas:

If you compile it yourself check the Makefile for:
CFLAGS

It is probably something like:
CFLAGS= -O2

Change it to something like:
CFLAGS= -O3 -march i686

There are plenty more options available, check Linux From Scratch homepage and FAQ for more. Hope that helps a bit.
 

BlackOmen

Senior member
Aug 23, 2001
526
0
0
Ok, looks like I was able to do that. Now, I believe I read somewhere that I can set an environment variable CFLAGS="-march i686". Any truth to this?
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0


<< Ok, looks like I was able to do that. Now, I believe I read somewhere that I can set an environment variable CFLAGS="-march i686". Any truth to this? >>



Yes. I used to have mine set to CFLAGS="-O3 -march=i686" and it worked most of the time.