I've been trying to compile QEMU with --enable-gprof on ubuntu, but I'm getting a linking error.
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/gcrt1.o: relocation R_X86_64_32S against `__libc_csu_fini' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/gcrt1.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [qemu-system-x86_64] Error 1
make: *** [subdir-x86_64-softmmu] Error 2
Have anyone been through this before? I've searched on the internet for a solution, but couldn't find it. Any help is welcome.
Thank you.