Saturday, January 10, 2009

CXXFLAGS for LinuxSampler

Fooled around a bit with linuxsampler/benchmark and got the following procedure to build an optimized rpm for my machine from LS CVS:

cvs -z3 -d:pserver:anonymous@cvs.linuxsampler.org:/var/cvs/linuxsampler co linuxsampler

or

cvs update -d -P

Then

make -f Makefile.cvs
./configure --prefix=/usr
make dist
cp linuxsampler-0.5.1.8cvs.tar.bz2 ~/rpmbuild/SOURCES/
CXXFLAGS="-O2 -march=pentium-m -ffast-math -mmmx -msse -funroll-loops -fomit-frame-pointer" rpmbuild -ba --clean --target i686 linuxsampler.spec

No comments: