On Tue, Feb 10, 2009 at 4:39 PM, Jason Daly <[email protected]> wrote:
> On RHEL 5, you have to *explicitly* set CXXFLAGS to "-march=i486" or higher
> *before* running CMake.  For some reason, the default configuration will
> evaluate to using mutexes, even if your CPU supports the GCC builtins.

In long hand I think Jason is suggesting something like:


// remove the previous CMakeCache.txt to force a full reconfigure
rm CMakeCache.txt

// set the CXXFLAGS to tell cmake that you plan to use a specific architecture
export CXXFLAGS="-march=i686"

// call the ./configure script or run cmake .
-DCMAKE_BUILD_TYPE=Release that it's equivalent to
./configure

// then run the parallel build to use all those loverly cores that
modern machines have :-)
make -j 4


Could you let us know how you get on with this recipe.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to