On Sun, 05 Jan 2014 09:40:35 +1030
Shane Ambler <[email protected]> wrote:

> 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.
> 

Nice, it works now:
$ tar xvf oiio-Release-1.3.9.tar.gz
$ mkdir oiio-1.3.9
$ cd oiio-1.3.9
$ cmake ../oiio-Release-1.3.9 -DCMAKE_CXX_FLAGS="-march=i686"
$ make

Problem solved.
Thank you a lot.
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to