Linking fails against static PETSc libs on Ubuntu 16.10

Issue #773 resolved
Prof Garth Wells created an issue

If PETSc is built with static libs, I get

/usr/bin/ld: /home/garth/local/packages/petsc-dbg/lib/libpetsc.a(verboseinfo.o): relocation R_X86_64_PC32 against symbol `petscstack' can not be used when making a shared object; recompile with -fPIC

This could be a PETSc bug, see https://bitbucket.org/petsc/petsc/issues/132/fpic-not-added-on-next-ubuntu-1610.

Comments (1)

  1. Log in to comment