/usr/bin/ld: /usr/local/lib/libjemalloc.a(jemalloc.o)

/usr/bin/ld: /usr/local/lib/libjemalloc.a(jemalloc.o): relocation R_X86_64_32S against `je_index2size_tab' can not be used when making a shared object; recompile with -fPIC

则将修改MakeFile

vim MakeFile

条加加黑字体

CPPFLAGS := -D_GNU_SOURCE -D_REENTRANT -I$(srcroot)include -I$(objroot)include –fPIC

6.重新编译文件

make   &&make install_lib_static
 

猜你喜欢

转载自blog.csdn.net/Nankys/article/details/86537779
今日推荐