What is the solution? If I should build with the -fPIC flag, how do I run configure and make to do that?
Code: Select all
/usr/bin/ld: /usr/local/lib/libfftw3.a(apiplan.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/lib/libfftw3.a(mapflags.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
I tried the 'make CXXFLAGS='-g -O2 -w -fPIC'' (i.e. compile with the -fPIC flag) but get exactly the same "relocation R_X86_64_32" error.