Hi all,
I'm trying to compile Stage 3.2.2 in debian wheezy, kernel 3.2.0-2-amd64, with gcc 4.6.3.
It gives the following error

/usr/bin/ld: CMakeFiles/stage.dir/block.o: relocation R_X86_64_PC32 against symbol `Stg::Block::DrawSides()' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libstage/libstage.so.3.2.2] Error 1
make[1]: *** [libstage/CMakeFiles/stage.dir/all] Error 2
make: *** [all] Error 2

I tried to add -fPIC option in cmake but it doesn't work.
Someone know how can I fix it?
Thanks in advance.


Gonzalo F. Perez Paina
Centro de Investigación en Informática para la Ingeniería, CIII.
Universidad Tecnológica Nacional. Facultad Regional Córdoba.
Maestro M. López esq. Cruz Roja Argentina. CP X5016ZAA