Epetra: test/BasicPerfTest/cxx_main.cpp not compiled with -fPIC
Created by: nschloe
On GCC 6.*, I'm getting the link error
/usr/bin/ld: CMakeFiles/Epetra_BasicPerfTest_test.dir/cxx_main.cpp.o:
relocation R_X86_64_PC32 against symbol `_ZNK14Epetra_MpiComm5PrintERSo'
can not be used when making a shared object; recompile with -fPIC
when configuring with tests. This is because packages/epetra/test/BasicPerfTest/cxx_main.cpp
is not compiled with the -fPIC
flag, as opposed to all other files.
Full details here.