Question for optimizing source installs on Slackware
Moderators: snarkout, Patrick, dann
- Wally Balljacker
- Posts: 1227
- Joined: Fri Jul 29, 2005 3:32 am
- Location: University of Massachusetts - Lowell
- Contact:
Question for optimizing source installs on Slackware
I just compiled Celestia on Slack 11, and according to the package checkinstall created, it's compiled for i386. Would optimizing it for a Pentium 4 be as simple as ./configure -march=pentium4, or something similar?
you need to do something like
the "-O2" is optional optimizations. and that's a capital o btw . 
Code: Select all
CFLAGS=' -march=pentium4 -O2 ' ./configure - Wally Balljacker
- Posts: 1227
- Joined: Fri Jul 29, 2005 3:32 am
- Location: University of Massachusetts - Lowell
- Contact:
Is there a configuration file to place that in, like Gentoo's /etc/make.conf?adam wrote:you need to do something like
the "-O2" is optional optimizations. and that's a capital o btw .Code: Select all
CFLAGS=' -march=pentium4 -O2 ' ./configure
- CptnObvious999
- Posts: 798
- Joined: Fri Jun 03, 2005 7:54 pm
- Location: Maryland
- Contact:
The -pipe argument is supposed to help speed up compile time some. Also I would export it as CFLAGS and CXXFLAGS since IIRC CXXFLAGS would be used for C++ programs. I just added "export CFLAGS="-march=k8 -O2 -pipe -msse3" and "export CXXFLAGS="-march=k8 -O2 -pipe -msse3" (change to your C[XX]FLAGS obviously) to my .bashrc in my user home directory and root directory so anything I compile manually will use those flags.
