> > An easy way to add compiler options is to run the configure > script with a few special environment variables set to the > values you want. > > CXX ==> c++ compiler > CXXFLAGS ==> compiler flags > > When I build blackbox, I run configure like this ... > > $ CXXFLAGS="-O2 -march=i586 -Wall" ./configure ... > > The other thing you can do is go in and modify the Makefile > after configure has run. >
my typical line is this: CXX=g++-3.1 ./configure we recently mod'ed the configure scrpt to add -g -O2 -Wall -W -pedantic to CXXFLAGS.
