On 03/01/2014 07:21, YuGiOhJCJ Mailing-List wrote: > It does not work: > $ make nuke > $ make MYCXX="g++ -march=i686" > [...]
> CMakeFiles/atomic_test.dir/atomic_test.cpp.o: In function > `do_int64_math(int)': > atomic_test.cpp:(.text+0x178): undefined reference to `__sync_fetch_and_add_8' > make: *** [cmake] Error 2 > Any other idea ? > Right idea wrong place. -march=i586 is the minimum needed for gcc atomics. You can alter CMAKE_CXX_FLAGS in cmake before running make (either ccmake from cli or cmake-gui - CMAKE_CXX_FLAGS are listed under advanced options) or you can set CXXFLAGS in your environment when first calling cmake for the initial configure in a clean build folder. _______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
