relocation R_X86_64_PC32 against undefined symbol `make_fcontext' can not be used when making a shared object
I tried install graph_tool from source codes. When make, I faced a problem:
make[4]: Entering directory `/home/heli/pro/pack/graph-tool-2.18/src/graph/inference'
CXXLD libgraph_tool_inference.la
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_coroutine.a(coroutine_context.o): relocation R_X86_64_PC32 against undefined symbol `make_fcontext' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make[4]: *** [libgraph_tool_inference.la] Error 1
It seems like that question:
My configure parameter is ./configure --with-boost-coroutine CXX='g++-5' --disable-sparsehash --with-boost-libdir=/opt/boost/lib