Build the library with -fPIC Here we're building a static library. fPIC is needed to be able to link this static library into a shared library, which a user of libmesh might want to do diff --git a/sources/CMakeLists.txt b/sources/CMakeLists.txt index 1b1519c..80c5f35 100644